03-23-2009 07:05 PM
I've noticed that whenever I hide the scale on a graph, the graph adjusts its original size to fill the hidden scale space, thus making it slightly bigger. Unfortunately, this is not what I want as I need to physically print perfect overlays of my graph (put paper in printer and print again) that are at exactly the same position and of exactly the same dimension (but have the x-scale hidden).
Anyone know of a way to work around this problem?
Solved! Go to Solution.
03-23-2009 07:17 PM
Clarification:
My X-scale is at the top, so hiding it resizes the graph to fill this space vertically
I calculated that it moves it up 19 pixels/spaces on my front panel.
So the best fix I can think of right now is the following:
When in overlay mode (axis hidden):
make graph height 19 pixels smaller
move graph down 19 pixels
Is this the easiest fix?
03-24-2009 10:01 AM
Hi jonvanjam,
Another work around could be drawing a front panel decoration and bring it to the front, covering up the X-scale.
Could you explain your application a bit better? Would it be possible to put all these plots on the same graph or do they need to be printed separately?
03-24-2009 10:29 AM
This particular VI which I'm working on is a "Print" VI for the part of my application that plots 10 different plots on an XY graph. Basically it takes a buffer of the graph the viewer is seeing on the previous screen and makes a plot (minus all the control buttons from before). If the plot has no grid lines (overlay mode button) the print program will detect this and suppress the axis so that when the paper is printed over, the same lines are not reprinted. The printer buffer VI also creates a legend (using a tab to hide text and controls) depending on what overaly graph it is (1,2,3) or if it is the original. Since the graph preview VI also has scrolling with cursors, the print VI includes an auto-align option for the user in case he went off the graph with the cursors. It's a fairly involved process and not simple to explain, so I'll just attach the print VI here.
JeffL wrote:Hi jonvanjam,
Another work around could be drawing a front panel decoration and bring it to the front, covering up the X-scale.
Could you explain your application a bit better? Would it be possible to put all these plots on the same graph or do they need to be printed separately?
03-24-2009 12:02 PM - edited 03-24-2009 12:04 PM
Try "un-checking" Reset Scale Layout*
Ben
* Learned from Christian
03-24-2009 12:14 PM
<subtlety>
Ben is a Steelers fan
</subtlety>
03-24-2009 01:14 PM
Reseting the layout didn't solve my problem. It just repositioned the x-axis
Visual representation of the prob.
03-24-2009 02:12 PM
03-24-2009 02:20 PM
MIG wrote:
I think you need to uncheck "Auto Adjust Scales" rather than "Reset Scale Layout".
Thats the ticket! Sorry about my crossed wires there.
Ben
03-24-2009 02:21 PM