Line Plot from Set of x,y Data?

Line Plot from Set of x,y Data? - Сообщения

#1 Опубликовано: 21.12.2023 01:42:41
Mick

Mick

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

Группа: User

I'm sure that this must be easy, but I can't seem to do it.

I have a set of (x,y) data points (measurements, not generated by a function). How do I plot these as a line plot?

TIA
#2 Опубликовано: 21.12.2023 02:59:28
overlord

overlord

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

Группа: Moderator

You can use augment() function.

2023-12-20_21-59.png
#3 Опубликовано: 21.12.2023 23:35:38
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I have a set of (x,y) data points (measurements, not generated by a function).How do I plot these as a line plot ?


Augment experimental data [X,Y], simply plot.
Next, you may want to fit a model function.
If not too long attach an image ... NOT more than 4 decimals.
Jean

#4 Опубликовано: 22.12.2023 00:27:50
overlord

overlord

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

Группа: Moderator

Wrote

Next, you may want to fit a model function.


So far he doesn't want.
When he asks for fitting then give those sample.
#5 Опубликовано: 22.12.2023 03:01:13
Mick

Mick

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

Группа: User

Thanks Overlord,

I couldn't find anything to tell me that!

I've used MathCad for decades, and have that system in my head: finding my way around SMath is a bit different. The documentation for beginners seems a bit sparse, to say the least,

Next request: is there a way of showing the data points joined by lines on the plot?

Again, TIA
#6 Опубликовано: 22.12.2023 06:08:56
overlord

overlord

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

Группа: Moderator

Wrote

I've used MathCad for decades, and have that system in my head: finding my way around SMath is a bit different.


SMath is similar to Mathcad but not the same.
If you give SMath a try you will get used to it.
I find documentation is quite detailed actually.
Not a problem if you don't, feel free to ask anything.
This is a very friendly forum, you will get a working answer.

Wrote

Next request: is there a way of showing the data points joined by lines on the plot?


You can either use a new plot for dots or feature of X-Y plot plugin.
Double click to X-Y plot, there is option for dots under;
Traces > Appearance > SymbolStyle > Type.

I generally prefer using 2D plot for its simplicity whenever I can.
Sometimes X-Y plot plugin is required nonetheless, especially on x + y functions.
X-Y plot can do anything 2D plot does, except the animations.
And X-Y plot plugin has many detailed customizable options.
You have much control over Axis, Title, Labels, etc.

Here is a sample for your request.

Regards

dot_sample.sm (5 КиБ) скачан 34 раз(а).

2023-12-22_01-02.png

Wrote

I couldn't find anything to tell me that!


Jean is what he is, troll of this forum.
He has knowledge no doubt, but no intention to help people.
You will only see him promoting himself and his samples.
His replies won't be related with your requests.
And he has seriously flawed engineering sheets.
Worse of it, he will insist on his mistakes.
Don't take anything he writes as true, correct or relevant.
#7 Опубликовано: 23.12.2023 00:26:32
Mick

Mick

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

Группа: User

Thanks again Overlord

I think I've got it now.

As to your comments on Jean, I seem to remember him from the MathCad forum about 15 years ago, the last time I used MathCad professionally and used the forum. Most people there were helpful, but Jean often answered the question he thought should have been asked, not the one actually asked. I also remember that model fitting featured strongly, even (especially?) when it wasn't relevant. He had a buddy (a Russian?) and they reinforced each other's views and wound each other up. I learnt then to treat his ideas with caution.

Thanks again for your help.

Bests
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений