LabVIEW 2022 Public Beta

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph corruption linked to font justification settings

As has been mentioned recently here, Graph scales can be irreversibly(?) corrupted by innocent justification settings.

 

This has been an annoyance for decades(!) and I wonder if this has ever been entered into the bug database. At one point, it should get some priority, IMHO. Maybe in the next beta? 😄

 

(I have learned the hard way to never (ever!) do any font justification when a graph is selected! It's an inescapable black rabbit hole!)

 

As a very simple demo, have a look at the attached VI. I dare anyone to try to get the original layout back. It seems impossible!

 

altenbach_0-1659201814974.png

 

Any "fix attempt " makes things worse!!!! (For example we might try to "center" and reset scale layout again, but nothing good happens.)

 

Similarly, if we right-click the second graph and do a "justify...left", the markers get corrupted. (can be fixed by reset scale layout, but should not happen in the first place!)

 

altenbach_1-1659202020263.png

 

If this cannot be fixed using first principles, maybe all we need is an internal barrier that will block (i.e. ignore) any justification settings to graph axes.

 

Similar problems also happen to scales of e.g. sliders and such (And here we don't even have a reset scale layout option!).

 

altenbach_3-1659202667497.png

 

Thanks!

 

0 Kudos
Message 1 of 8
(3,272 Views)

@altenbach wrote:

 

As a very simple demo, have a look at the attached VI. I dare anyone to try to get the original layout back.

 

altenbach_0-1659201814974.png

 


I haven't used your VI, but if I start from scratch in LV 2015 and drop an XY graph, I can fix the scale labels by:

  1. Right clicking the graph, Advanced>>Customize
  2. Click the wrench button
  3. Grab the label and move it to where you want
  4. Apply the changes

I didn't investigate to see how the scaling works exactly (other than that the label does stay at the center. I assume the position is proportional to the scale).


___________________
Try to take over the world!
0 Kudos
Message 2 of 8
(3,232 Views)

Thanks for testing. We should not need to use the control editor. That's not really a solution.

 

(Changes that are done on the front panel, should be un-doable on the front panel.)

0 Kudos
Message 3 of 8
(3,221 Views)

Right clicking the graph and selecting "Advanced>Reset Scale Layout" might reset the scales too.

 

However, there's no way to do this from the diagram, so it really doesn't help much.

 

Once you start dynamically showing and hiding scales, things go sour soon as well. The only way to do this is by handling the visibility and position manually, which is quite a task...

0 Kudos
Message 4 of 8
(3,192 Views)

wiebe@CARYA wrote:

 

Once you start dynamically showing and hiding scales, things go sour soon as well. The only way to do this is by handling the visibility and position manually, which is quite a task...


Oh yeah, at one point I started replacing much of the graph functionality with custom code for signal selection.  I made some decent progress but then never actually used it on a project.

 

https://lavag.org/topic/21507-circular-graph-graphs-with-circular-buffer-demo/

 

 

0 Kudos
Message 5 of 8
(3,188 Views)

wiebe@CARYA wrote:

Right clicking the graph and selecting "Advanced>Reset Scale Layout" might reset the scales too..


Yes, that's step #2 in my first picture and activating it will move the axis labels irreversibly to the edge. (if there were justification setting changes).

 

(undo works but once you forget to immediately undo things, e.g. if you notice the corruption only in the next edit session, starting from scratch seems to be the only option).

0 Kudos
Message 6 of 8
(3,186 Views)

@altenbach wrote:

wiebe@CARYA wrote:

Right clicking the graph and selecting "Advanced>Reset Scale Layout" might reset the scales too..


Yes, that's step #2 in my first picture and activating it will move the axis labels irreversibly to the edge. (if there were justification setting changes).


Ah, the small letters 😎.

0 Kudos
Message 7 of 8
(3,180 Views)

@Hooovahh wrote:

wiebe@CARYA wrote:

 

Once you start dynamically showing and hiding scales, things go sour soon as well. The only way to do this is by handling the visibility and position manually, which is quite a task...


Oh yeah, at one point I started replacing much of the graph functionality with custom code for signal selection.  I made some decent progress but then never actually used it on a project.

 

https://lavag.org/topic/21507-circular-graph-graphs-with-circular-buffer-demo/


I've been reusing code for that, it seems to be stable.

Message 8 of 8
(3,179 Views)