07-30-2022 12:39 PM
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!
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!)
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!).
Thanks!
07-31-2022 03:39 AM
@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.
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:
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).
07-31-2022 09:32 AM
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.)
08-03-2022 09:30 AM
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...
08-03-2022 09:48 AM
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/
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-03-2022 09:50 AM
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).
08-03-2022 09:56 AM
@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 😎.
08-03-2022 09:58 AM
@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.