X-Y Plot for electrical resistance

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

#1 Objavljeno: 16. 10. 2021. 18:56:17
Fabian

Fabian

0 svidjanja u 3 postova.

Grupa: 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 Objavljeno: 16. 10. 2021. 19:41:28
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: 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 Objavljeno: 16. 10. 2021. 19:46:20
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: 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 Objavljeno: 17. 10. 2021. 13:03:39
Fabian

Fabian

0 svidjanja u 3 postova.

Grupa: 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 Objavljeno: 17. 10. 2021. 14:28:23
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: 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 Objavljeno: 17. 10. 2021. 16:08:04
Fabian

Fabian

0 svidjanja u 3 postova.

Grupa: 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 Objavljeno: 17. 10. 2021. 16:23:47
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: 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 Objavljeno: 18. 10. 2021. 07:03:57
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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,76 KiB) preuzeto 1221 put(ova).

PlotIntegers.PNG

#9 Objavljeno: 18. 10. 2021. 09:30:30
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

... refreshed version ½ timing.

Solve INVERSE Recursive NASA.sm (16,45 KiB) preuzeto 1217 put(ova).
#10 Objavljeno: 18. 10. 2021. 17:05:53
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: 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,62 KiB) preuzeto 1261 put(ova).

2021-10-18_23-04.png

#11 Objavljeno: 18. 10. 2021. 21:03:39
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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,6 KiB) preuzeto 1309 put(ova).
#12 Objavljeno: 19. 10. 2021. 00:42:00
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: 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,15 KiB) preuzeto 1220 put(ova).

Imagen1.png

Best regards
Alvaro.
#13 Objavljeno: 19. 10. 2021. 10:20:17
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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,77 KiB) preuzeto 1185 put(ova).
#14 Objavljeno: 19. 10. 2021. 11:19:27
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: 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
  • Novi postovi
  • Nema novih postova