LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug with snappable plots in log scale

Hello, hello,

I found a weird behavior, maybe a bug.

If you have a cursor and a snappable plot on a graph with an axis (say Y for the sake of argument) both with log scale and auto-scaling, the topmost points cannot be selected by the cursor, either with the mouse or the keyboard arrows.

If you add an invisible and non-snappable point to the graph at MaxY*1.0001, then it works...

 

0 Kudos
Message 1 of 3
(1,451 Views)

Hi gdargaud

What I have found from another forum post is that you can configure whether a cursor can snap to a particular plot by setting this plot attribute:

SetPlotAttribute (panel, graph, plot, ATTR_PLOT_SNAPPABLE, 0;

It might have expected hidden plots to not be snappable by default, but apparently, they're not, so you'll have to also set this attribute whenever you hide a plot.

Try to set the plot attribute and then try snapping those points again. 

 

Regards

 

0 Kudos
Message 2 of 3
(1,367 Views)

Yes, I imagine the snappable+hidden combination might come in handy in a few cases (although that could be replaced with a transparent plot), but I don't think it has anything to do with the bug I noticed.

0 Kudos
Message 3 of 3
(1,361 Views)