# LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

## XY Graph y axis range flips when y range max is changed

I have an XY graph whose Y range up/down sense changes when the Y max is changed and the previous Y max becomes the Y min.  I'd like to lock the Y min at 0.  How do I do this?  Thanks

Message 1 of 4
(558 Views)

## Re: XY Graph y axis range flips when y range max is changed

Hi Ted,

@Ted_Jackson2112 wrote:

I'd like to lock the Y min at 0.  How do I do this?

Set YMin to zero!

The question is: how/when do you change YMax right now? Why does YMin change when you edit YMax?

Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO
Message 2 of 4
(539 Views)
Solution
Accepted by topic author Ted_Jackson2112

## Re: XY Graph y axis range flips when y range max is changed

• We would probably need to see some code.
• Can't you convert your y values to more reasonable units?
• What is your definition of "flips"? Both pictures show the y axis increasing vertically. No flip.

@Ted_Jackson2112 wrote:

I have an XY graph whose Y range up/down sense changes when the Y max is changed and the previous Y max becomes the Y min.

Well, that's how you programmed it, so fix the code. This is not the default behavior. You have full control of ymin an ymax at any time, so take advantage of that.

If you are operating cursors when the axes change inadvertently, also make sure to disable "cursors scroll graph"

Message 3 of 4
(537 Views)

## Re: XY Graph y axis range flips when y range max is changed

You're right. It wasn't flipping.  It was shifting, dragging the Y min such that the total range remained the same when I changed the Y max.  And you have the fix that works.  The Y values were too 'unreasonable'.  I scaled them by a factor of 10^12 and that appears to have fixed the problem.  Thanks much.

Message 4 of 4
(512 Views)