LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Two graph-related questions

Hello all,

I've got 2 smaller problems with graphs:

1. Is it possible to define the range of axes "half-dynamic", so that
the lowest value ist allways "0", but the highest depends on the data?

2. I create histograms with the histogram.vi, which gives me x/y-data. I
plot this data as an xy-graph, as a line-plot. I would appreciate to
have vertical bars instead. Any hint?

Thanks in advance,

Rüdiger
0 Kudos
Message 1 of 4
(2,696 Views)
Hi, I believe i can help with the first problem, i believe on your graph u should create a property node and set the minimum x axis and y axis to zero by connecting a numeric constant. And the property node should be set to read. This should work have never used vertical bars before.

Stuart
0 Kudos
Message 2 of 4
(2,695 Views)
Hi,
I don't know of an automatic way of making the scale "half dynamic" as
you say. I achieve this by turning off autoscaling and setting the
Xscale or Yscale Range Minimum to 0 and the Maximum to an the required
value by writing to these property nodes of the graph. An option to
Autoscale from 0 would be a nice feature for Labview. Maybe there is a
setting for Labview.ini but I haven't seen this anywhere.

To change to a bar plot you should first have the graphs Plot Legend
visible. Right Click on this and you can select many options for the
plot. You will need to turn off the interpolation to eliminate the line
all together.

Regards,
Dave.

Rüdiger Hofmann wrote:
> Hello all,
>
> I've got 2 smaller problems with graphs:
>
> 1. Is it possible to define
the range of axes "half-dynamic", so that
> the lowest value ist allways "0", but the highest depends on the data?
>
> 2. I create histograms with the histogram.vi, which gives me x/y-data. I
> plot this data as an xy-graph, as a line-plot. I would appreciate to
> have vertical bars instead. Any hint?
>
> Thanks in advance,
>
> Rüdiger
0 Kudos
Message 3 of 4
(2,695 Views)
> 1. Is it possible to define the range of axes "half-dynamic", so that
> the lowest value ist allways "0", but the highest depends on the data?
>


Another way of accomplishing this is to add a zero to your data. This
is easiest if you add a phony plot that is in the background and has at
least one zero. This way you can keep autoscaling on and it will expand
the min to zero.

Greg McKaskle
0 Kudos
Message 4 of 4
(2,695 Views)