LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i repeat this graph?

Hello,

I have the data to plot on the graph but I am unable to reproduce it as the graph in the image

How can I make the chart look the same?

Objective plot:

leandrofeder_0-1712865872937.png


VI:

leandrofeder_1-1712865910067.png

 

0 Kudos
Message 1 of 4
(420 Views)

Sorry, I cannot look at your VI, just at the picture (consider "save for previous), 2020 or below, before attaching VIs).

 

Please make sure to use the correct terminology, a "chart" is something very different than a graph, so don't mix the two.

 

You have wired an empty array to the chart terminal so no points will even show. Where does the data in your picture comes from?

 

Most of your code makes very little sense! There is no purpose to the sequence structure and having just one (or three) marker values on the axes seems odd. All your string gymnastics seems overly complicated.

 


@leandrofeder wrote:

I have the data to plot on the graph but I am unable to reproduce it as the graph in the image

How can I make the chart look the same?


 

What exactly should "look the same"? The data? The annotations? The cosmetics?

0 Kudos
Message 2 of 4
(410 Views)

Sorry, now I attached the 2020 version of the VI

So, I don't have any other values

I received the demand to be able to repeat the image with the values that are in the VI

But I'm not getting that yet

The format of the values is as it is in the file, I will need to process the data before making the plot

I can't share the original file for confidentiality reasons




0 Kudos
Message 3 of 4
(352 Views)

One way to accomplish what you're looking is to create 2 curves to plot, one with your original data, and another curve with just with the red dots, then plot them on top of each other using a XY graph. 

 

Each curve will be a cluster 

X,Y, then build an array of clusters to plot your final result. 

The final XY graph needs to be adjusted to look like you desire, adjust color, points and interpolation (You do that by right click on the plot legend on your front panel.

 

LVNinja_0-1712927909863.png

LVNinja_1-1712928018502.png

 

0 Kudos
Message 4 of 4
(337 Views)