Skip to main content
Best answer by ttokoro

image.png....Your each plot data

image.png.....Stack all line data in same variable A

image.png.....Plot all. But can't change each color of line.

image.png

3 replies

ttokoro
21-Topaz I
ttokoro21-Topaz IAnswer
21-Topaz I
September 27, 2024

image.png....Your each plot data

image.png.....Stack all line data in same variable A

image.png.....Plot all. But can't change each color of line.

image.png

t.t.
23-Emerald V
September 27, 2024

Or, adding specificity to Tetsuo's answer ...

 

2024 09 27 H.png

 

Stuart

25-Diamond I
September 27, 2024

I thought that @YA_10963798  was more looking for something like this - but then I sure may be wrong about it...

Werner_E_2-1727446286037.png

 

 

 

23-Emerald V
September 27, 2024

@Werner_E wrote:

I thought that @YA_10963798  was more looking for something like this - but then I sure may be wrong about it...

 

<Werner Image>


Looking at the OP's diagram again, I think you're right.  Although, as you say, the OP's intention isn't quite clear.  If the purpose is to simplify drawing all of the depth plots, then yes, your method or a variant of mine does the job.  I like your function, BTW.  Neat.

 

2024 09 27 K.png  

 

However, if the intention is, in part, to make it more transparent what is happening at each depth, then there may be some alternatives.  Provided one is aware that the pressure values are messed up, you can add a constant offset to each pressure curve so that they appear visually separated,

 

2024 09 27 L.png

 

However, this hits one of the MP10 plot component's limitations.  Trying to add a sixth plot makes most of them disappear (at least, on my PC).  So, here's a crude variant of the stacker above that adds that offset.

 

Second axes would be handy.

 

2024 09 27 M.png

 

Stuart

 

25-Diamond I
September 27, 2024

It would be easier if all vectors in q.cza would be of the same length as then you could augment them all and use a waterfall plot.

In your case it would be necessary to bring those vectors to the same length before, filling with NaN where necessary.
As ttokoro wrote it would not be possible to chose different colors - all lines would be of the same color.
If thats not a problem, come back here and say so. If you insist on different colors, I fear you would have to manually type in all abscissa vectors as you already did with five of them.

 

BTW, it is a bad idea to use variables with the same name as pre-defined built-in functions. I am talking about "rows" and "cols". Once you define those variables, its much more work to use the built.in functions.