divyavamsee / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Bar plots' bases not used in -scaleToFitPlots: calculation #378

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an horizontal CPTBarPlot with 1 bar at location 0 and tip 10
2. Call graph's defaultSpace -scaleToFitPlot: method 

What is the expected output? 
A Y range 0..10 in order to see the full bar length.

What do you see instead?
A nil Y range so the initial range 0..1 is still applied.

What version of the product are you using? On what operating system?
Core Plot 0.9
changeset: 1237:304f55e8b598
iOS 5

Please provide any additional information below.
Note: If barBasesVary is FALSE, all bases should be considered equals to 0.
See attached file for a quick & dirty fix in a category file (for CPTBarPlot 
only). 

The problem seems to be generic.
For instance with a Scatter plot:

1. Create an CPTScatterPlot with 2 plots, each plot has only 1 point :
  - plot 1, point at 0, 8
  - plot 2, point at 0, 10
2. Call graph's defaultSpace -scaleToFitPlot: method

What is the expected output? 
A Y range 8..10 in order to see both points.

What do you see instead?
A nil Y range so the initial range 0..1 is still applied.

Original issue reported on code.google.com by julien.v...@gmail.com on 9 Dec 2011 at 9:18

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 958066b876e4.

Original comment by eskr...@mac.com on 10 Dec 2011 at 3:36