Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Beyaz  
#1 Posted : 11 February 2023 12:35:47(UTC)
Beyaz


Rank: Member

Groups: Registered
Joined: 12/11/2021(UTC)
Posts: 18

Hey guys,

im trying to plot my function with x-yplot (addon) but it doesnt work. I will be happy if can someone can help me.
i define two functions (with If-clauses) and now I have to put it in x-y-plot.
Thanks for helping

Pfahlsetzungslinie.sm (102kb) downloaded 17 time(s).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 11 February 2023 15:51:05(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Beyaz Go to Quoted Post
I define two functions (with If-clauses) and now I have to put it in x-y-plot.

1. Start by the first red instance ... assign the demand.
2. For the plot Units don't match
3. Check if your incomplete Bolean is OK ... here shown complete.
4. What is mPa

Assign.PNG
Offline overlord  
#3 Posted : 11 February 2023 17:27:05(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 509 time(s) in 339 post(s)
If you want to plot, you have to eliminate units.
Either by writing a unitless function, or using units while plotting.
I would rather second one.

Regards

Pfahlsetzungslinie.sm (113kb) downloaded 10 time(s).

Click to enlarge
Offline Beyaz  
#4 Posted : 11 February 2023 20:22:20(UTC)
Beyaz


Rank: Member

Groups: Registered
Joined: 12/11/2021(UTC)
Posts: 18

hey guys thanks. (i tryed to give you a thanks but i always get an error)
it works now. Ive realized my mistakes.

i have 2 more question.
1. is it possible to rotate the graph or function? I wanna switch x and y axis
2. i wanna make the visible spectrum of x and y axis depent on a variable. like X-Axis Max=s1 and Min=s2

//sorry for my bad english Good
Offline Jean Giraud  
#5 Posted : 11 February 2023 22:44:13(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Beyaz Go to Quoted Post
i have 2 more question.
1. is it possible to rotate the graph or function? I wanna switch x and y axis
2. I wanna make the visible spectrum of x and y axis depend on a variable. like X-Axis Max=s1 and Min=s2

I understand 1 ... 2 Not clear.
Cheers ... Jean.

Wana.PNG
Offline Jean Giraud  
#6 Posted : 11 February 2023 22:46:06(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
... once the discrete data set in hand,
you can rotate by any angle as desired.
Offline Jean Giraud  
#7 Posted : 11 February 2023 23:58:06(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Beyaz Go to Quoted Post
2. I wanna make the visible spectrum of x and y axis depend on a variable. like X-Axis Max=s1 and Min=s2

If I understand: once the discrete data set in hand,
very easy to range between Mi/Max.
Produce the discrete data set, I will terminate.
Cheers ... Jean.

Offline Razonar  
#8 Posted : 12 February 2023 07:43:27(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: Beyaz Go to Quoted Post
... i have 2 more question.
1. is it possible to rotate the graph or function? I wanna switch x and y axis
2. i wanna make the visible spectrum of x and y axis depent on a variable. like X-Axis Max=s1 and Min=s2


Hi Beyaz.

1. Yes. For example you can use this technique over your functions

Clipboard01.png

xy-yx-plot.sm (8kb) downloaded 8 time(s).

2. Yes. For example you can try to learn about how to use setprop in an XY plot region.

Best regards.
Alvaro.
Offline Beyaz  
#9 Posted : 12 February 2023 13:09:44(UTC)
Beyaz


Rank: Member

Groups: Registered
Joined: 12/11/2021(UTC)
Posts: 18

question 2: solved after find this
https://en.smath.com/for...205_X-Y-Plot-Region.aspx
s.PNG


but to rotate the graph like this it didnt work. i tried your suggestions. Pfahlsetzungslinie1.sm (81kb) downloaded 11 time(s).
gedr.png
Offline Razonar  
#10 Posted : 12 February 2023 14:47:18(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. You need to specify the XYPlot index. This is how to swap axis coordinates, and reverse the y-axis. I reduce the number of points in the XYPlot to 50.

Clipboard01.png

Pfahlsetzungslinie1.sm (88kb) downloaded 10 time(s).

Best regards.
Alvaro.

Offline Jean Giraud  
#11 Posted : 12 February 2023 15:12:08(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Beyaz Go to Quoted Post
But to rotate the graph like this it didn't work.
I tried your suggestions.

You haven't produced the discrete data set.
Cheers ... Jean.

Wanna Rotate.sm (15kb) downloaded 3 time(s).

Offline Jean Giraud  
#12 Posted : 12 February 2023 20:23:09(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
WannaRotQED.PNG
Offline overlord  
#13 Posted : 13 February 2023 13:13:49(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 509 time(s) in 339 post(s)
You can also use a rotation matrix.
It works on both 2DPlot an XYplot.

Regards

2023-02-13_13-12.png
thanks 1 user thanked overlord for this useful post.
on 13/02/2023(UTC)
Offline Jean Giraud  
#14 Posted : 13 February 2023 16:41:33(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Rotate XY.sm (487kb) downloaded 3 time(s).
Offline Beyaz  
#15 Posted : 13 February 2023 21:07:49(UTC)
Beyaz


Rank: Member

Groups: Registered
Joined: 12/11/2021(UTC)
Posts: 18

thanks all of you guys.

now my smath tool is perfect. thanks for helping.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.