04-04-2013 01:15 PM - edited 04-04-2013 01:32 PM
Hi -
I need to alter the appearance of a graph somewhat. The user doesn't want any full grid lines, but he does want a small crosshair (like a plus sign) drawn in each of the four quadrants. The CanvasDrawLine() function would be good for this, if it worked on graph objects, but it doesn't. I guess I could use bit files, but...is there an easier/better way?
EDIT: after reading a little more on bit maps, it's not clear to me that these will work, either. So...any other ideas at all?
Thanks.
Solved! Go to Solution.
04-04-2013 08:25 PM
I decided to use the PlotPoint() function with VAL_CROSS. This isn't ideal, as I have to redraw the crosses whenever I erase the graph, but it's good enough. If anyone knows of a clever way to do this (retain the crosses while erasing the data plots), I'm interested to hear about it. Thanks.
04-05-2013 12:30 AM
I have two comments/suggestions:
04-05-2013 01:52 AM
Going on the line of wolfgang suggestion, you could also have two graphs one on top of the other. The lower one can have all fixed elements (scales, axes, crosses and so on), while on the upper one, with transparent background, you can draw / erase your data plots. As long as you keep axes for both graphs with the same scale the system works like a charm, and you don't need to struggle with pixel conversion between the graph and the picture.
04-05-2013 07:30 PM
Those are both good suggestions. I opted for the route of keeping a list of the non-cross plots, and deleting from that list only. Seemed easier than creating a bitmap or a second graph (which I would still have to doctor).
Thanks.