X-Y Plot for electrical resistance

X-Y Plot for electrical resistance - Trying to plot electrical resistance - Messages

#1 Posted: 10/16/2021 6:56:17 PM
Fabian

Fabian

0 likes in 3 posts.

Group: User

I am trying to plot electrical resistance using Electrical Engineering Library and X-Y-Plots Plugins but it does not seem to work:

2021-10-16 23_55_14-Window.png

Can anyone help me plot this?
#2 Posted: 10/16/2021 7:41:28 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Delete the ohm unit in Rp.
Usually you shouldn't use units while plotting.
For information, this includes most numeric solver functions too.

Regards

2021-10-17_01-41.png
#3 Posted: 10/16/2021 7:46:20 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Or if you will really need units;
Try to eliminate or add them in the input data.
It is to avoid them being used in plot.
Or to avoid conflict between unit-ed numbers and not unit-ed.

When you use Rx in your function, it can't be EEL_par with 1 ohm.
Plot try to use Rx as an number not a unit added number.
You either add unit to Rx or do opposite.
Opposite is eliminating all units of other variables.

Regards

2021-10-17_01-46.png
#4 Posted: 10/17/2021 1:03:39 PM
Fabian

Fabian

0 likes in 3 posts.

Group: User

Thanks, this makes total sense.

Also, how is it possible to only plot (or "stem" as it is called in Matlab ) integer values?
#5 Posted: 10/17/2021 2:28:23 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

Thanks, this makes total sense.

Also, how is it possible to only plot (or "stem" as it is called in Matlab ) integer values?


Maybe I chose a wrong word to describe it, shall edit.
It will plot not only integers, numbers actually.
But plot expect them to be dimensionless.
Not just X-Y plot, built-in 2D plot also.

Regards

2021-10-17_20-26.png
#6 Posted: 10/17/2021 4:08:04 PM
Fabian

Fabian

0 likes in 3 posts.

Group: User

Wrote

Or if you will really need units;
Try to eliminate or add them in the input data.
It is to avoid them being used in plot.
Or to avoid conflict between unit-ed numbers and not unit-ed.

When you use Rx in your function, it can't be EEL_par with 1 ohm.
Plot try to use Rx as an integer not a unit added number.
You either add unit to Rx or do opposite.
Opposite is eliminating all units of other variables.

Regards

2021-10-17_01-46.png



So how did you add the Ohm symbol under the plot? It won't let me add a unit there.

#7 Posted: 10/17/2021 4:23:47 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

So how did you add the Ohm symbol under the plot? It won't let me add a unit there.


1 - Hit multiply after Rx;
2 - (Type W in place holder, place Ctrl+G) or (Click ohm from right pane);
3 - Placeholder shall appear, either double click or press tab to insert Ω as unit.
If you are not typing units after numbers, this is the way.

You can also type ' between step1 and step2.
Units can be typed or chosed with this way more quick.
This will directly open placeholder scroll menu.

Regards
#8 Posted: 10/18/2021 7:03:57 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Also, how is it possible to only plot (or "stem" as it is called in Matlab ) integer values?


Altitude is plotted integers.

Solve INVERSE Recursive NASA.sm (13 KiB) downloaded 24 time(s).

PlotIntegers.PNG

#9 Posted: 10/18/2021 9:30:30 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

... refreshed version ½ timing.

Solve INVERSE Recursive NASA.sm (16 KiB) downloaded 31 time(s).
#10 Posted: 10/18/2021 5:05:53 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

Also, how is it possible to only plot (or "stem" as it is called in Matlab ) integer values?


I don't know if there is a stem equivalent for smath plots.
But you can create your own function for that purpose.

Regards

stem.sm (8 KiB) downloaded 26 time(s).

2021-10-18_23-04.png

#11 Posted: 10/18/2021 9:03:39 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

... you can animate the stem system, have symbols too.
Here, integers are the X direction.
Eventually, easy for the Y direction as applicable.

2D Util Stem ANIM Laplace Diffusion.sm (21 KiB) downloaded 29 time(s).
#12 Posted: 10/19/2021 12:42:00 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

...
Also, how is it possible to only plot (or "stem" as it is called in Matlab ) integer values?



Hi. In addition to the overlord solution, this is another approach.

stem.sm (12 KiB) downloaded 38 time(s).

Imagen1.png

Best regards
Alvaro.
#13 Posted: 10/19/2021 10:20:17 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

You can highlight some particular point(s) with glyphe(s) of you choice.
You will have to dispose their position by hand.

2D Plot Setup Glyphes.sm (28 KiB) downloaded 30 time(s).
#14 Posted: 10/19/2021 11:19:27 AM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

...In addition to the overlord solution...


Mine was not a solution to be honest.
Just a quick and ugly way to show it is possible.
This is a good solution though.

Regards
  • New Posts New Posts
  • No New Posts No New Posts