Draw Bar Graph in XY Plot or ZedGraph

Draw Bar Graph in XY Plot or ZedGraph - Messaggi

#1 Pubblicato: 07/11/2016 14:24:13
NDTM Amarasekera

NDTM Amarasekera

130 apprezzamenti in 352 post.

Gruppo: User

Hi,
It will be much appreciated if somebody can show me how to draw a bar graph in X-Y Plot or ZedGraph,
using two vectors as shown please ("t" in x axis, "Rain" in y axis).

Bar Graph.jpg
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
#2 Pubblicato: 07/11/2016 14:51:22
Radovan Omorjan

Radovan Omorjan

325 apprezzamenti e 1 disapprezzamenti in 2.052 post.

Gruppo: Moderator

Hello,

As far as I know there are no bar graphs in SMath. At least, there is no easy way to obtain them.
I wish I was wrong about it.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Pubblicato: 07/11/2016 15:51:00
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: Moderator

Just in case, might worth the effort to try with the modeller region

Wrote

As far as I know there are no bar graphs in SMath.


True

Mostra spoiler

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2 utenti hanno apprezzato questo post
NDTM Amarasekera 07/11/2016 22:51:00, Radovan Omorjan 07/11/2016 16:28:00
#4 Pubblicato: 07/11/2016 16:36:53
Radovan Omorjan

Radovan Omorjan

325 apprezzamenti e 1 disapprezzamenti in 2.052 post.

Gruppo: Moderator

Somehow Davide, you crossed my mind when I posted the answer
It seems I was right

Wish you the best of luck,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
2 utenti hanno apprezzato questo post
NDTM Amarasekera 07/11/2016 22:51:00, Davide Carpi 08/11/2016 06:03:00
#5 Pubblicato: 07/11/2016 22:48:04
NDTM Amarasekera

NDTM Amarasekera

130 apprezzamenti in 352 post.

Gruppo: User

Thank you very much Davide and Radovan for your clarifications.
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
#6 Pubblicato: 07/11/2016 23:13:50
NDTM Amarasekera

NDTM Amarasekera

130 apprezzamenti in 352 post.

Gruppo: User

Thank you again Davide and Radovan.
To demonstrate a Flood Hydrograph, it was only possible to draw a line graph (in reverse order) in ZedGraph.
In X-Y Plot reverse order is not possible.

ZedGraph Plot.jpg
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
1 utenti hanno apprezzato questo post
Radovan Omorjan 08/11/2016 03:42:00
#7 Pubblicato: 08/11/2016 00:23:45
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

I know nothing about "Zedgraph".
I can se Davide had a "cat in the hat".
Stem plot does same/different in no time
except for the red 0 rain [<20 sec]

Cheers, Jean

Rainfall.gif

Forum Rainfall.sm (87,7 KiB) scaricato 1338 volta(e).
2 utenti hanno apprezzato questo post
Davide Carpi 08/11/2016 06:03:00, Radovan Omorjan 08/11/2016 03:42:00
#8 Pubblicato: 08/11/2016 02:47:45
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

This scrap proposal makes me happy for some
distinctive small project. Manual but convenient
for small projects. For larger size and unicolor
the project needs be constructed around a counter.

Jean

File non trovato.File non trovato.
2 utenti hanno apprezzato questo post
Radovan Omorjan 08/11/2016 03:42:00, Davide Carpi 08/11/2016 06:03:00
#9 Pubblicato: 08/11/2016 03:02:22
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

... next version

Bar Plot_0.gif
4 utenti hanno apprezzato questo post
frapuano 08/11/2016 05:02:00, Radovan Omorjan 08/11/2016 03:42:00, Davide Carpi 08/11/2016 06:03:00, NDTM Amarasekera 08/11/2016 06:40:00
#10 Pubblicato: 08/11/2016 06:44:08
NDTM Amarasekera

NDTM Amarasekera

130 apprezzamenti in 352 post.

Gruppo: User

Thank you for the examples.
I will try my best to use them to suit my problem.
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
#11 Pubblicato: 08/11/2016 07:12:41
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Simple example

2016-11-08_15-11-46.png
Russia ☭ forever, Viacheslav N. Mezentsev
2 utenti hanno apprezzato questo post
Radovan Omorjan 08/11/2016 07:29:00, frapuano 08/11/2016 08:06:00
#12 Pubblicato: 08/11/2016 08:13:06
NDTM Amarasekera

NDTM Amarasekera

130 apprezzamenti in 352 post.

Gruppo: User

Many thanks to Uni, for the simple example.
I was expecting a response from you also.
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
#13 Pubblicato: 08/11/2016 10:38:56
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Bar Plot_1.gif
#14 Pubblicato: 08/11/2016 11:07:35
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

In the Viacheslav proposal, you don't see bar not plotting equally wide.
Because the bars are so wide ! In the real project I proposed, the bars
are much thiner for dense project. Thus there will always be at least
"one" bar looking thiner because of the plot pixel impossible to match
perfectly along the stretching of the plot.

Cheers, Jean
#15 Pubblicato: 09/11/2016 07:26:03
NDTM Amarasekera

NDTM Amarasekera

130 apprezzamenti in 352 post.

Gruppo: User

Wrote

Simple example



I used method proposed by Uni to plot Bar Graph to show rainfall in ZedGraph as shown (in reverse order).

File non trovato. File non trovato.
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
#16 Pubblicato: 09/11/2016 11:54:21
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Thanks for the "Zed Graph" snippet. I don't have this plugin
whereas I will stay Smath 5346, and don't intend to upgrade.
The attached document is for publising projects.

Cheers, Jean

Bar Plot Quuick.gif

Bar Plot_2.gif

2D Bar Plot Custom.sm (35,01 KiB) scaricato 1311 volta(e).
  • Nuovi post
  • Nessun nuovo post