"Flipping" axes, 2D plot

"Flipping" axes, 2D plot - graphing - Messaggi

#1 Pubblicato: 01/04/2019 00:40:56
rodp1

rodp1

0 apprezzamenti in 8 post.

Gruppo: User

Hi all,

New user, so learning my way around. I haven't been able to find a way to do the follow.

What I would like to do is plot a function where the abscissa is shown on the vertical axis, and the ordinate on the horizontal axis. The function shows wind speed as a function of height, so it's more natural to plot the height values vertically.

Thanks!
#2 Pubblicato: 01/04/2019 01:33:32
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Hi Rod. I guess that the easy way is: (1) discretize the domain, (2) vectorize the co-domain and finally (3) plot augmenting in the "reverse" order.

plot.gif

PLOT.sm (4,66 KiB) scaricato 1237 volta(e).

Best regards.
Alvaro.
#3 Pubblicato: 01/04/2019 01:50:45
rodp1

rodp1

0 apprezzamenti in 8 post.

Gruppo: User

Wrote

Hi Rod. I guess that the easy way is: (1) discretize the domain, (2) vectorize the co-domain and finally (3) plot augmenting in the "reverse" order.



Thanks. That's exactly what I needed. I don't think I would have ever guessed that sequence of commands.
#4 Pubblicato: 01/04/2019 09:21:48
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

The function shows wind speed as a function of height


That is no problem as you have it exemplified already.
Now, if you measure the wind speed and want to know the height
the problem is inversing the function. That is a much different story.
Many functions have an inverse from maple, but generally not.
It is always possible from other solvers in discrete mode,
then re-fit best by a model function or simply interpolate.
Attach your wind speed function or the data set.
A technical example of what I'm trying to explain is the temperature
measurement with the Platinum thermometer. BIPM gives resistance vs
temperature. But you measure resistance, then the problem is to read °C.
Wind speed is very local, that's why you may just have data.
Please, feel comfortable in Smath Community, plenty of "cats in the hat"

Cheers ... Jean

rodp1.sm (22,57 KiB) scaricato 1159 volta(e).

#5 Pubblicato: 01/04/2019 10:16:43
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Wind speed is very local, that's why you may just have data.


The Windmill project was done Mathcad 11 [W vs speed].
Here is an image to download ... being converted Smath
Expect today Smath document. Observe the function inverse.

Eol.bmp
  • Nuovi post
  • Nessun nuovo post