09-04-2013 01:04 PM
Hi there,
I'm trying to export some simplified images from graphs, with the grid hidden since it tends to make things look messy. The thing is, when there are multiple y-axes this option seems to be ignored on the second axis. Does anyone have any idea how to get around this?
Thanks!
Solved! Go to Solution.
09-05-2013 05:48 AM
Hi marc1uk,
If you don't require the grid axis on your exported simplified image, then I would suggest disabling the grid lines for the extra axis, which can be done by right clicking on the graph and navigating into the Scales tab. Under grid style and colours you can change the grid style by clicking on the picture of a graph and selecting one of the three options, the leftmost being disabled gridlines.
After trying it out for myself, I cant see any clear reason why it doesn't work. so I will have to look into it further.
If you want all sets of gridlines to be visible in your program you could, for the time being, look into using property nodes to disable and re-enable the gridlines that are causing the problem.
Kind regards,
09-05-2013 07:13 AM
Hi Matt,
That's a great suggestion - after a while I realised I could turn the grids off with the property nodes on the graph, but I'd prefer to have them visible in the program as they're sufficiently faded as to not render the graph unreadable. It's only when exporting as a simplified image that they cause problems. A few property nodes to turn them off & then back on should do the trick nicely.
Thanks!
09-05-2013 07:32 AM
Hi marc1uk,
There might be a problem in using property nodes in that Im struggling to see how you select the axis on the right hand side, which is the one that causes problems when you export a simplified image.
Im still looking into this, and will let you know if I find a way around it.
Kind regards,
09-05-2013 07:35 AM
Hi marc1uk,
On trying some more things you should be able to select the scale using the active scale property. The active scale number will probably be 1 for the scale on the right of the graph and 0 for the one on the left, but you may need to try this,
Kind regards,
09-06-2013 07:21 AM - edited 09-06-2013 07:25 AM
Hi Matt,
Yep, using a property node to select the ActiveYScale, then subsequent properties of that scale should be the way to refer to each of them. The order is easy enough to determine from the order they were added or by name in the graph properties. It's the same method I use to programmatically set scale names, plot names, which Y axis to use for each plot and so-on. Takes a little bit more work (and space) than the standard invoke node though!
Thanks again,
Regards