Draw Bar Graph in XY Plot or ZedGraph

Draw Bar Graph in XY Plot or ZedGraph - Mensajes

#1 Publicado: 7/11/2016 14:24:13
NDTM Amarasekera

NDTM Amarasekera

130 me gusta en 352 mensajes.

Grupo: 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 Publicado: 7/11/2016 14:51:22
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: 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 Publicado: 7/11/2016 15:51:00
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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

Mostrar spoiler

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
A 2 usuarios les gustó este mensaje
NDTM Amarasekera 7/11/2016 22:51:00, Radovan Omorjan 7/11/2016 16:28:00
#4 Publicado: 7/11/2016 16:36:53
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: 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!"
A 2 usuarios les gustó este mensaje
NDTM Amarasekera 7/11/2016 22:51:00, Davide Carpi 8/11/2016 6:03:00
#5 Publicado: 7/11/2016 22:48:04
NDTM Amarasekera

NDTM Amarasekera

130 me gusta en 352 mensajes.

Grupo: 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 Publicado: 7/11/2016 23:13:50
NDTM Amarasekera

NDTM Amarasekera

130 me gusta en 352 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
Radovan Omorjan 8/11/2016 3:42:00
#7 Publicado: 8/11/2016 0:23:45
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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) descargado 1332 vez(es).
A 2 usuarios les gustó este mensaje
Davide Carpi 8/11/2016 6:03:00, Radovan Omorjan 8/11/2016 3:42:00
#8 Publicado: 8/11/2016 2:47:45
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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

Archivo no encontrado.Archivo no encontrado.
A 2 usuarios les gustó este mensaje
Radovan Omorjan 8/11/2016 3:42:00, Davide Carpi 8/11/2016 6:03:00
#9 Publicado: 8/11/2016 3:02:22
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

... next version

Bar Plot_0.gif
A 4 usuarios les gustó este mensaje
frapuano 8/11/2016 5:02:00, Radovan Omorjan 8/11/2016 3:42:00, Davide Carpi 8/11/2016 6:03:00, NDTM Amarasekera 8/11/2016 6:40:00
#10 Publicado: 8/11/2016 6:44:08
NDTM Amarasekera

NDTM Amarasekera

130 me gusta en 352 mensajes.

Grupo: 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 Publicado: 8/11/2016 7:12:41
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

Simple example

2016-11-08_15-11-46.png
Russia ☭ forever, Viacheslav N. Mezentsev
A 2 usuarios les gustó este mensaje
Radovan Omorjan 8/11/2016 7:29:00, frapuano 8/11/2016 8:06:00
#12 Publicado: 8/11/2016 8:13:06
NDTM Amarasekera

NDTM Amarasekera

130 me gusta en 352 mensajes.

Grupo: 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 Publicado: 8/11/2016 10:38:56
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Bar Plot_1.gif
#14 Publicado: 8/11/2016 11:07:35
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 9/11/2016 7:26:03
NDTM Amarasekera

NDTM Amarasekera

130 me gusta en 352 mensajes.

Grupo: User

Wrote

Simple example



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

Archivo no encontrado. Archivo no encontrado.
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
#16 Publicado: 9/11/2016 11:54:21
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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) descargado 1307 vez(es).
  • Nuevos mensajes
  • Sin mensajes nuevos