LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a graph that plots "steps"

Solved!
Go to solution

Hello I want to be able to plot a graph that displays "steps"

 

I am using the Plot Waveform.vi still went I change the waveform plot type to squares (which I think is the control to change) nothing happens.

 

Please see the attached pic of what I am getting right now, thanks

 

 I will also like to change the x axis to display 0 to 10 instead of -100 to 0, I have tried changing the minimum and maximum values for x from the cartesian axis attributes, but then the graph goes out of range.

 

 

LabVIEW Intermediate I level!
0 Kudos
Message 1 of 22
(3,927 Views)
you can right click the plot legend and from there you can change your plot to what you want
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 22
(3,921 Views)

Bebeto wrote:

Hello I want to be able to plot a graph that displays "steps


Do you mean a bar plot?

 


I am using the Plot Waveform.vi still went I change the waveform plot type to squares (which I think is the control to change) nothing happens.

 

Please see the attached pic of what I am getting right now, thanks


That creates a picture plot. Is there a particular reason you're using a picture plot as opposed to a regular graph/chart? Also, that setting changes the plot point itself, not the graph type. In other words, that setting means that each point is drawn as a square, which is what your picture shows. 

 


 I will also like to change the x axis to display 0 to 10 instead of -100 to 0, I have tried changing the minimum and maximum values for x from the cartesian axis attributes, but then the graph goes out of range.


Then you need to change the data. Your data clearly shows X values in the range of -80 to -20. Obviously, if you change the X range to 0 to 10 the graph will go out of range. How can the plot show points that are not in the range you've specified?

 

 

0 Kudos
Message 3 of 22
(3,913 Views)

do you mean on the Front panel?

 

I have attached the VI for a better understanding

LabVIEW Intermediate I level!
0 Kudos
Message 4 of 22
(3,910 Views)

Hello Smercurio,

 

For the data range I understand what you are saying, How can I do then to "fix" the values on the x axis to display something else. What I mean is to have the data as it is but display something else, like have the -100 be equal to zero, the -90 = 1, -80 = 2 and so forth?

 

and for the reason I am using this picture plot is because this is legacy Software and I am making some modifications to it, but if you can give me suggestions I will really appreciate them.

 

and for the way that I want it to be plot or graph is to be seen as stairs 

LabVIEW Intermediate I level!
0 Kudos
Message 5 of 22
(3,904 Views)

Hello Smercurio,

 

This is what I get from the bar plot (see attached),  I will like to have it kind of like that but with the bars below, inverse.

 

LabVIEW Intermediate I level!
0 Kudos
Message 6 of 22
(3,894 Views)
It looks like you selected the wrong 'Fill Base Line' option. To change your scale, you just have to specify an Offset.
0 Kudos
Message 7 of 22
(3,876 Views)

Hello Dennis,

 

where do I go to change the "fill base line" option? thanks in advance

 

and for the offset is that in the cartesian axis attributes?

LabVIEW Intermediate I level!
0 Kudos
Message 8 of 22
(3,862 Views)

Hello Dennis,

 

where do I go to change the "fill base line" option? thanks in advance

 

and for the offset is that in the cartesian axis attributes?

LabVIEW Intermediate I level!
0 Kudos
Message 9 of 22
(3,861 Views)
There are a couple of ways. First is to use the help so that you learn how yourself. To change the fill, right click on the Plot Legend or right click on the graph and select Properties>Plots. To change the offset, go to the Scales tab.
0 Kudos
Message 10 of 22
(3,858 Views)