Draw Bar Graph in XY Plot or ZedGraph

Draw Bar Graph in XY Plot or ZedGraph - Poruke

#1 Objavljeno: 7. 11. 2016. 14:24:13
NDTM Amarasekera

NDTM Amarasekera

130 svidjanja u 352 postova.

Grupa: 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 Objavljeno: 7. 11. 2016. 14:51:22
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: 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 Objavljeno: 7. 11. 2016. 15:51:00
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

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

Prikaži spoiler

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2 korisnika je svidelo ovu objavu
NDTM Amarasekera 7. 11. 2016. 22:51:00, Radovan Omorjan 7. 11. 2016. 16:28:00
#4 Objavljeno: 7. 11. 2016. 16:36:53
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: 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 korisnika je svidelo ovu objavu
NDTM Amarasekera 7. 11. 2016. 22:51:00, Davide Carpi 8. 11. 2016. 06:03:00
#5 Objavljeno: 7. 11. 2016. 22:48:04
NDTM Amarasekera

NDTM Amarasekera

130 svidjanja u 352 postova.

Grupa: 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 Objavljeno: 7. 11. 2016. 23:13:50
NDTM Amarasekera

NDTM Amarasekera

130 svidjanja u 352 postova.

Grupa: 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 korisnika je svidelo ovu objavu
Radovan Omorjan 8. 11. 2016. 03:42:00
#7 Objavljeno: 8. 11. 2016. 00:23:45
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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) preuzeto 1365 put(ova).
2 korisnika je svidelo ovu objavu
Davide Carpi 8. 11. 2016. 06:03:00, Radovan Omorjan 8. 11. 2016. 03:42:00
#8 Objavljeno: 8. 11. 2016. 02:47:45
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

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

Fajl nije pronađen.Fajl nije pronađen.
2 korisnika je svidelo ovu objavu
Radovan Omorjan 8. 11. 2016. 03:42:00, Davide Carpi 8. 11. 2016. 06:03:00
#9 Objavljeno: 8. 11. 2016. 03:02:22
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

... next version

Bar Plot_0.gif
4 korisnika je svidelo ovu objavu
frapuano 8. 11. 2016. 05:02:00, Radovan Omorjan 8. 11. 2016. 03:42:00, Davide Carpi 8. 11. 2016. 06:03:00, NDTM Amarasekera 8. 11. 2016. 06:40:00
#10 Objavljeno: 8. 11. 2016. 06:44:08
NDTM Amarasekera

NDTM Amarasekera

130 svidjanja u 352 postova.

Grupa: 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 Objavljeno: 8. 11. 2016. 07:12:41
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Simple example

2016-11-08_15-11-46.png
Russia ☭ forever, Viacheslav N. Mezentsev
2 korisnika je svidelo ovu objavu
Radovan Omorjan 8. 11. 2016. 07:29:00, frapuano 8. 11. 2016. 08:06:00
#12 Objavljeno: 8. 11. 2016. 08:13:06
NDTM Amarasekera

NDTM Amarasekera

130 svidjanja u 352 postova.

Grupa: 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 Objavljeno: 8. 11. 2016. 10:38:56
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

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

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 9. 11. 2016. 07:26:03
NDTM Amarasekera

NDTM Amarasekera

130 svidjanja u 352 postova.

Grupa: User

Wrote

Simple example



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

Fajl nije pronađen. Fajl nije pronađen.
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
#16 Objavljeno: 9. 11. 2016. 11:54:21
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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) preuzeto 1328 put(ova).
  • Novi postovi
  • Nema novih postova