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

core plot mask limit band with plotArea cornerRadius #510

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. draw a graph with:

CPTMutablePlotRange *yRange = [CPTPlotRange 
plotRangeWithLocation:CPTDecimalFromFloat(0.0f)                    
length:CPTDecimalFromFloat(11.0f)];

plotSpace.yRange = [CPTPlotRange 
plotRangeWithLocation:CPTDecimalFromFloat(-0.75f)
                                                    length:CPTDecimalFromFloat(11.5f)];

2. round the plotareas corners:

[graph.plotAreaFrame.plotArea setBackgroundColor:[UIColor whiteColor].CGColor];
[graph.plotAreaFrame.plotArea setCornerRadius:10.0];
[graph.plotAreaFrame.plotArea setBorderColor:[UIColor blueColor].CGColor];
[graph.plotAreaFrame.plotArea setBorderWidth:1.0];
// if I set `masksToBounds:YES` my labels get masked too.

3. create the y-axis and fill the bottom:

CPTAxis *y = axisSet.yAxis;

CPTPlotRange *range = [CPTPlotRange 
plotRangeWithLocation:CPTDecimalFromDouble(-1.0) 
length:CPTDecimalFromDouble(2.0)];
CPTFill *bandFill = [CPTFill fillWithColor:[CPTColor blueColor]];
CPTLimitBand *limitBand = [CPTLimitBand limitBandWithRange:range fill:bandFill];
[y addBackgroundLimitBand:limitBand];

What is the expected output? What do you see instead?

I expected rounded corners for all content of my plotArea,
but I got the following shown in the Image of my post:
http://stackoverflow.com/questions/14912579/core-plot-mask-limit-band-with-plota
rea-cornerradius

What version of the product are you using? On what operating system?

I'm developing for the iPhone on Mac OS 10.8.

How to find the corePlot version?

Please provide any additional information below.

Original issue reported on code.google.com by ralph.sc...@gmail.com on 17 Feb 2013 at 5:26

GoogleCodeExporter commented 9 years ago
I'm working on Release 1.1

Original comment by ralph.sc...@gmail.com on 19 Feb 2013 at 1:44

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 20 Feb 2013 at 2:24

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

Original comment by eskr...@mac.com on 13 Mar 2013 at 12:18