NI Home > Community > NI Discussion Forums

Measurement Studio for .NET Languages

Reply
Member
Shawn Hoover
Posts: 9
0 Kudos

2010 SP1 waveform graph y-axis caption/marker label spacing

I updated to SP1 this week, and now there are 5 pixels of extra horizontal margin between the y-axis caption (left side, bottom-to-top) and y-axis major marker labels. Is this intentional? It changes the vertical alignment characteristics of stacked graphs. There is one remotely related bug in the bug fixes list (222524), but that doesn't read to me like it should cause what I'm seeing.

 

Thanks,

Shawn

Member
Shawn Hoover
Posts: 9
0 Kudos

Re: 2010 SP1 waveform graph y-axis caption/marker label spacing

Ok, I think I see the problem. The y-axis range is -0.00001 to 0.00100 (marker label formatting is F5), but I have EndLabelsAlwaysVisible=false, so the first marker label is 0.00000. SP1 is accounting for the text size of the end labels even though they are not visible. The minus sign on the range minimum makes the difference. Setting the range minimum to 0 makes the extra space go away.

Member
Danceman
Posts: 90
0 Kudos

Re: 2010 SP1 waveform graph y-axis caption/marker label spacing

Sounds like you have figured out this situation,  please let me know if there is anything else I can help you with in displaying these graphs.

Member
Shawn Hoover
Posts: 9
0 Kudos

Re: 2010 SP1 waveform graph y-axis caption/marker label spacing

[ Edited ]

Indeed, I figured out what's going on, and even if I keep the desired negative minimum range, I know how to force align the other graphs in my window. But isn't this kind of the same thing as 222524, i.e. a bug? There are five pixels of margin that don't really need to be there.

Active Participant
D_Biel
Posts: 676
0 Kudos

Re: 2010 SP1 waveform graph y-axis caption/marker label spacing

[ Edited ]

Hi Shawn,

 

I see this behavior too and could not reproduce it in MStudio 2009 either. Bug 222524 is for a different issue, but it is likely closely related. It is possible that our fix for that bug introduced this new bug. I have filed a bug report for it and you can track it with ID 338809. Sorry for the inconvenience. Were you able to find a workaround?

National Instruments
Product Support Engineer
Member
Shawn Hoover
Posts: 9
0 Kudos

Re: 2010 SP1 waveform graph y-axis caption/marker label spacing

D Biel, thank you for filing the bug. There's no workaround for the five extra pixels of margin, but it's barely noticeable once I correct the alignment of my other graphs. As long as it's fixed at some point, everything will be back to normal.