Draw Bar Graph in XY Plot or ZedGraph

Draw Bar Graph in XY Plot or ZedGraph - 消息

#1 已发布: 2016/11/7 14:24:13
NDTM Amarasekera

NDTM Amarasekera

130个赞,共352个帖子。

组: 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 已发布: 2016/11/7 14:51:22
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: 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 已发布: 2016/11/7 15:51:00
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

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

显示剧透

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2位用户喜欢此帖子
NDTM Amarasekera 2016/11/7 22:51:00, Radovan Omorjan 2016/11/7 16:28:00
#4 已发布: 2016/11/7 16:36:53
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: 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位用户喜欢此帖子
NDTM Amarasekera 2016/11/7 22:51:00, Davide Carpi 2016/11/8 06:03:00
#5 已发布: 2016/11/7 22:48:04
NDTM Amarasekera

NDTM Amarasekera

130个赞,共352个帖子。

组: 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 已发布: 2016/11/7 23:13:50
NDTM Amarasekera

NDTM Amarasekera

130个赞,共352个帖子。

组: 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位用户喜欢此帖子
Radovan Omorjan 2016/11/8 03:42:00
#7 已发布: 2016/11/8 00:23:45
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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)已下载 1347 次。
2位用户喜欢此帖子
Davide Carpi 2016/11/8 06:03:00, Radovan Omorjan 2016/11/8 03:42:00
#8 已发布: 2016/11/8 02:47:45
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

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

未找到文件。未找到文件。
2位用户喜欢此帖子
Radovan Omorjan 2016/11/8 03:42:00, Davide Carpi 2016/11/8 06:03:00
#9 已发布: 2016/11/8 03:02:22
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

... next version

Bar Plot_0.gif
4位用户喜欢此帖子
frapuano 2016/11/8 05:02:00, Radovan Omorjan 2016/11/8 03:42:00, Davide Carpi 2016/11/8 06:03:00, NDTM Amarasekera 2016/11/8 06:40:00
#10 已发布: 2016/11/8 06:44:08
NDTM Amarasekera

NDTM Amarasekera

130个赞,共352个帖子。

组: 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 已发布: 2016/11/8 07:12:41
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Simple example

2016-11-08_15-11-46.png
Russia ☭ forever, Viacheslav N. Mezentsev
2位用户喜欢此帖子
Radovan Omorjan 2016/11/8 07:29:00, frapuano 2016/11/8 08:06:00
#12 已发布: 2016/11/8 08:13:06
NDTM Amarasekera

NDTM Amarasekera

130个赞,共352个帖子。

组: 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 已发布: 2016/11/8 10:38:56
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Bar Plot_1.gif
#14 已发布: 2016/11/8 11:07:35
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2016/11/9 07:26:03
NDTM Amarasekera

NDTM Amarasekera

130个赞,共352个帖子。

组: User

Wrote

Simple example



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

未找到文件。 未找到文件。
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
#16 已发布: 2016/11/9 11:54:21
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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)已下载 1315 次。
  • 有新帖
  • 无新帖