LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make Y axis of Probability plot readable

I'm able to plot the data. The curve of the distribution is very nice. But the scale of Y axis is difficult for the audience to understand the meaning of the data. In order to make it easier for the audience. I would like to change Y axis to the one shown in the desired Y axis scale.  Could anyone share some ideas with me?

  

 

1. My VI:

DavidWei_0-1642330159942.png

 

2. Probability plot done by my VI:

DavidWei_3-1642330255730.png

 

3. The desired Y axis scale:

DavidWei_2-1642330219497.png

 

 

 

0 Kudos
Message 1 of 4
(1,278 Views)

It is fine to attach pictures to show the effect you want, but please attach actual VIs (not pictures of part of a Block Diagram) for the following reasons:

  • It prevents those of us who want to help you from having severe eyestrain.
  • If you don't tell us what version of LabVIEW you are using (which you didn't), we can figure it out from your VI.
  • By examining your code (when we can see it clearly), we get some idea about your LabVIEW experience.
  • We can use your VI to test our "suggestions to help you".

In your case, you should also attach an appropriate Data set so we can see how well our suggestions meet your needs.

 

Here is a thought (for free, without eyestrain):

 

LabVIEW has two kinds of scales for axes -- linear and logarithmic.  In a logarithmic scale, numbers are "spread apart" at small values, and get "bunched together" as they get larger (i.e. the space between 0.1 and 1 is the same as the space between 1 and 10, and between 10 and 100).  In your Graph, the spacing goes in the opposite direction.  This makes me think that the Y axis should be plotting something like log(1/x) -- too bad I don't have your code to test this hypothesis ...

 

Bob Schor

0 Kudos
Message 2 of 4
(1,257 Views)
  1. Set the Y-axis mapping to "logarithmic" (Actually not close enough, so vote for e.g. this idea! Just manipulate your data for a linear scale (logit? probit?) and make the axis using a free label. No big deal, because it is fixed!)
  2. Disable autoscaling Set the min and max according to you desired values.
  3. Set the rest of the markers using the marker vals[] property for the y axis (see link and image below)

 

See here (this is for a linear x-axis. I am sure you can adapt to your scenario)

 

HideEdgeMarkers.png

(Note that the crossed out advice only works for linear and logarithmic, so won't apply here)

 

Also:

 


@DavidWei wrote:

 

1. My VI:

DavidWei_0-1642330159942.png

 


 

As has been said already, diagram pictures are pretty useless (with some exceptions :D). All we can see is that you are doing things in an extremely convoluted and inefficient way. "delete from array" NEVER belongs in a tight loop. All you need is a FOR loop with a conditional output tunnel! NONE of your shift registers are needed. The pink can be replaced with autoindexing at the output tunnel and the brown one with conditional indexing (Guessing, because we cannot see what's in the other case!).Not sure why you "not" the "Include" button instead of just swapping the cases? Do you really expect the user to potentially change that button during the nanoseconds the loop executes, with completely unpredictable results? If not, the terminal belongs before the loop and other things could be simplified.

0 Kudos
Message 3 of 4
(1,244 Views)

Thanks for your quick response and suggestions.

here attached is my VI.

0 Kudos
Message 4 of 4
(1,224 Views)