gujjula / core-plot

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

Labels in the chart upside down int eh projected screen #267

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Add Label to the Charts
2.Add TV Out Facility
3.Project to screen

What is the expected output? What do you see instead?
Labels to be displayed properly

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

Please provide any additional information below.
The labels are coming upside down. I have attached the image

Original issue reported on code.google.com by hrishike...@gmail.com on 15 Mar 2011 at 2:17

Attachments:

GoogleCodeExporter commented 9 years ago
How are you sending the graph to the TV Out? You should not just put the graph 
layer in a standard UIView. Instead, use the CPGraphHostingView, or make it a 
subview of the view you are using for TV Out. It does some transforms which may 
explain the issues you are seeing.

Drew

Original comment by drewmcco...@mac.com on 15 Mar 2011 at 4:40

GoogleCodeExporter commented 9 years ago
I'm trying to us TVOutManager (http://www.touchcentric.com/blog/archives/123 ) 
for TVOut with CorePlot ( be it custom app, or the CorePlot's Plot_Gallery )
The issue I'm hawing, is that the image flipped upside down ( though the 
toolbar is in proper position, which is even more confusing ). Seems like the 
same problem as the original poster
Any suggestions are welcome. Thanks.

Original comment by fla...@gmail.com on 29 Jun 2011 at 7:21

GoogleCodeExporter commented 9 years ago
Is your UIView typed as CPTGraphHostingView? It must be, because it does a flip 
transform.

Drew

Original comment by drewmcco...@mac.com on 29 Jun 2011 at 8:30

GoogleCodeExporter commented 9 years ago
If you are using a CPTGraphHostingView, you might try reseting the sublayer 
transform. Something like this:

hostingView.layer.sublayerTransform = CATransform3DIdentity;

Original comment by eskr...@mac.com on 30 Jun 2011 at 12:53

GoogleCodeExporter commented 9 years ago
Yes, The CPGraphHostingView is being used ( is there other view that could be 
used ? )

using hostingView.layer.sublayerTransform = CATransform3DIdentity did following:
TV out didn't change; the same upside down image could be seen even on ipad :))

hostingView.collapsesLayers = YES;
did the trick for me; on iPad, as well on TV out, expected images finally came 
out.

Original comment by fla...@gmail.com on 2 Jul 2011 at 5:11

GoogleCodeExporter commented 9 years ago
See comment #5 for the suggested fix.

Original comment by eskr...@mac.com on 8 Jul 2011 at 2:23