Create a graph with x-y plot

Create a graph with x-y plot - Сообщения

#1 Опубликовано: 11.02.2023 06:35:47
Beyaz

Beyaz

0 сообщений из 19 понравились пользователям.

Группа: User

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 (101 КиБ) скачан 43 раз(а).
#2 Опубликовано: 11.02.2023 09:51:05
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

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
#3 Опубликовано: 11.02.2023 11:27:05
overlord

overlord

551 сообщений из 1332 понравились пользователям.

Группа: Moderator

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 (112 КиБ) скачан 32 раз(а).

Click to enlarge
#4 Опубликовано: 11.02.2023 14:22:20
Beyaz

Beyaz

0 сообщений из 19 понравились пользователям.

Группа: User

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
#5 Опубликовано: 11.02.2023 16:44:13
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

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
#6 Опубликовано: 11.02.2023 16:46:06
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

... once the discrete data set in hand,
you can rotate by any angle as desired.
#7 Опубликовано: 11.02.2023 17:58:06
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

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.

#8 Опубликовано: 12.02.2023 01:43:27
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Wrote

... 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 (7 КиБ) скачан 30 раз(а).

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

Best regards.
Alvaro.
#9 Опубликовано: 12.02.2023 07:09:44
Beyaz

Beyaz

0 сообщений из 19 понравились пользователям.

Группа: User

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


but to rotate the graph like this it didnt work. i tried your suggestions. Pfahlsetzungslinie1.sm (80 КиБ) скачан 36 раз(а).
gedr.png
#10 Опубликовано: 12.02.2023 08:47:18
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

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 (87 КиБ) скачан 41 раз(а).

Best regards.
Alvaro.

#11 Опубликовано: 12.02.2023 09:12:08
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

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 (14 КиБ) скачан 21 раз(а).

#12 Опубликовано: 12.02.2023 14:23:09
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

WannaRotQED.PNG
#13 Опубликовано: 13.02.2023 07:13:49
overlord

overlord

551 сообщений из 1332 понравились пользователям.

Группа: Moderator

You can also use a rotation matrix.
It works on both 2DPlot an XYplot.

Regards

2023-02-13_13-12.png
1 пользователям понравился этот пост
churichuro 13.02.2023 16:11:00
#14 Опубликовано: 13.02.2023 10:41:33
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Rotate XY.sm (486 КиБ) скачан 24 раз(а).
#15 Опубликовано: 13.02.2023 15:07:49
Beyaz

Beyaz

0 сообщений из 19 понравились пользователям.

Группа: User

thanks all of you guys.

now my smath tool is perfect. thanks for helping.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений