shobhitmehrotra1 / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

depending on the order of the setup code, the default labels can be created before you set the labeling policy #522

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Please post this on the issue tracker. This is a side effect of the new layout 
code—depending on the order of the setup code, the default labels can be 
created before you set the labeling policy.

Thanks,
Eric

On Monday, April 8, 2013 6:54:52 PM UTC-4, Todd Zilla wrote:
Thanks for the 1.2 release.  Graph layout and rendering seem faster based on 
limited experience with it so far.  Sweet!  Here is one curious change I noted 
though.  My graph is not supposed to have labels on the y-axis.  I used to 
configure this by setting:

y.labelingPolicy              = CPTAxisLabelingPolicyNone;

After upgrading to 1.2, I now have a label at y = 0 (but nowhere else).  Adding 
the following line returned the graph to the behavior I expected:

y.axisLabels                  = [NSSet setWithObjects:nil];

Thought you should know...

Original issue reported on code.google.com by toddzil...@gmail.com on 10 Apr 2013 at 2:07

GoogleCodeExporter commented 8 years ago

Original comment by eskr...@mac.com on 10 Apr 2013 at 11:31

GoogleCodeExporter commented 8 years ago
Adding another issue that might be related (This is from my post on the forum 
(https://groups.google.com/forum/?fromgroups=#!topic/coreplot-discuss/25QFPQ7mh_
Q):

I just upgraded my code to the latest release, and ran my app without any 
modification, and it crashed on me with malloc error:

2013-04-10 11:00:01.060 void SendDelegateMessage(NSInvocation*): delegate 
(_selectionLayoutChangedByScrolling:) failed to return after waiting 10 
seconds. main run loop mode: kCFRunLoopDefaultMode
 malloc: *** mmap(size=3280896) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

It seems like if I have axis.labelTextStyle called before calling 
axis.majorIntervalLength, it crashes.
To make it work, I had to move majorIntervalLength call above labelTextStyle 
call.

FAILS:
    x.labelTextStyle = axisTextStyle;
    x.majorIntervalLength = CPTDecimalFromFloat(self.xInterval*ONE_DAY);

WORKS:
    x.majorIntervalLength = CPTDecimalFromFloat(self.xInterval*ONE_DAY);
    x.labelTextStyle = axisTextStyle;

Anyone knows about this?
Thanks

Original comment by amit.a.c...@gmail.com on 11 Apr 2013 at 5:07

GoogleCodeExporter commented 8 years ago

Original comment by eskr...@mac.com on 28 Apr 2013 at 3:44

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 55cf7a422dff.

Original comment by eskr...@mac.com on 28 Apr 2013 at 4:09