How do you change the Point Style/Shape

Definitions of graphs you want to share with us

Moderator: Mattk

Post Reply
Edzo1
Junior Boarder
Junior Boarder
Posts: 29
Joined: Sat Feb 14, 2009 5:16 pm
Location: Scituate, MA USA
Contact:

How do you change the Point Style/Shape

Post by Edzo1 » Mon Nov 02, 2009 8:41 pm

I'm trying to create a Wind Direction graph using points as the display type. However, I would like to change the default point style from the "plus sign" to a small colored circle, or any one of the available point styles displayed after you run the "Test" command.

I have successfully utilized numerous gnuplot commands for other graph types but this one is driving me crazy. I have tried every conceivable command line but the correct one! It's right under my nose but I can't see it. Could someone possibly shed some light on the correct command line for this? Any help would be greatly appreciated!

Ed

User avatar
HeinrichH
Gold Boarder
Gold Boarder
Posts: 187
Joined: Sun Jan 04, 2009 6:27 pm
Location: Emmen-Netherlands / Panoias-Portugal
Contact:

Re:How do you change the Point Style/Shape

Post by HeinrichH » Wed Nov 04, 2009 11:30 am

Ed,

The only thing I know of the linestyles in Meteohub that they are limited due the use of the terminal png type used. I've tried a long time to create graphs with dotted lines but no luck.
Can you post a list of commands that you utilized for graph definitions with a short discription? Maybe there is a possibility to open a "Sticky topic" in this forum with the commands we can use for the graph definitions in the terminal png.

I attached an example graphic with the following format string:
set locale "nl_NL"|set key below box|set border -1 lw 2|set mxtics 2|set mytics 0|set ylabel "kWh per maand"|set y2label "kWh meterstand"|set ytics 20|set boxwidth 0.85 relative|set style fill solid 0.3

Commands explaned:

set locale "nl_NL"|
This command sets the text and date to the Dutch language

set key below box|
This set the key below the graphic and draws a box around it

set border -1 lw 2|
This set the graphic border to the linewith of 2

set mxtics 2|
This set the minor X ax tics to 2

set mytics 0|
This set the minor Y ax tics to 0

set ylabel "kWh per maand"|
This set the label of the Y1 ax

set y2label "kWh meterstand"|
This set the label of the Y2 ax

set ytics 20|
This set the tics of the Y1 ax to 20

set boxwidth 0.85 relative|
This set the with of the bars to 85% so you keep some background visible in the graphic

set style fill solid 0.3
This set the fil style of the bars to 30%

Hope you can do something with this

Henk Image
Checking the remote....

Edzo1
Junior Boarder
Junior Boarder
Posts: 29
Joined: Sat Feb 14, 2009 5:16 pm
Location: Scituate, MA USA
Contact:

Re:How do you change the Point Style/Shape

Post by Edzo1 » Thu Nov 05, 2009 3:48 am

Henk - thank you for the feedback and examples of gnuplot commands. Good idea of having a place to list certain commands too! I've only used very basic commands that I've seen in this forum page.

Regarding what I'm trying to do, I know it can be done because it looks like MH forum user StratoQ has "cracked the code" on his wind direction graph on his website kilkennyweather.com

I'll keep trying and if anyone figures it out, please pass it along.

Thanks,

Ed

User avatar
HeinrichH
Gold Boarder
Gold Boarder
Posts: 187
Joined: Sun Jan 04, 2009 6:27 pm
Location: Emmen-Netherlands / Panoias-Portugal
Contact:

Re:How do you change the Point Style/Shape

Post by HeinrichH » Thu Nov 05, 2009 1:42 pm

Thanks for the spot, I've send a mail to the station owner, I hope he will share the format string with us.
Checking the remote....

User avatar
StratoQ
Senior Boarder
Senior Boarder
Posts: 53
Joined: Sun May 04, 2008 3:17 pm
Location: Kilkenny, Ireland
Contact:

Re:How do you change the Point Style/Shape

Post by StratoQ » Tue Nov 10, 2009 8:59 pm

Hello

Sorry for delay in reply. Here is the format cmd I use for my last 24 hrs wind direction:

set style line 1 lw 3|set style increment user|set y2tics mirror|set grid y2tics

Hopefully this should work for you. I use both left and right axis with min set to 0 and max 360. Display type is points, of course.

Regards
http://www.kilkennyweather.com/

User avatar
HeinrichH
Gold Boarder
Gold Boarder
Posts: 187
Joined: Sun Jan 04, 2009 6:27 pm
Location: Emmen-Netherlands / Panoias-Portugal
Contact:

Re:How do you change the Point Style/Shape

Post by HeinrichH » Tue Nov 10, 2009 10:18 pm

Thanks for the info.

This is my format string:
set locale "nl_NL"|set key below box|set border -1 lw 2|set style line 1 lw 4|set style increment user|set y2tics mirror|set grid y2tics

lw 4 makes the points thicker.
For the range y1 and y2 I used min -10 and max 347 so the points are in the grid, looks better
y1 = text and y2 are degrees
timebucket is 30 minutes Image
Checking the remote....

Edzo1
Junior Boarder
Junior Boarder
Posts: 29
Joined: Sat Feb 14, 2009 5:16 pm
Location: Scituate, MA USA
Contact:

Re:How do you change the Point Style/Shape

Post by Edzo1 » Wed Nov 11, 2009 9:02 pm

StratoQ, thanks so much for sharing the format command line! I was driving myself crazy trying to figure it out. Now the wind direction points look great.

Henk, thank you for the follow up! And thanks for the pointers (pun intended) on setting up your graph with your format string..., looks great!

I'm trying my luck with making my own simple weather station website using Joomla. It's been slow going, trying to find the time with kids and all, but hopefully I'll have something up and running in a few short weeks.

Again, thanks for everyone's help!

User avatar
HeinrichH
Gold Boarder
Gold Boarder
Posts: 187
Joined: Sun Jan 04, 2009 6:27 pm
Location: Emmen-Netherlands / Panoias-Portugal
Contact:

Re:How do you change the Point Style/Shape

Post by HeinrichH » Thu Nov 12, 2009 12:23 am

That's the great thing of forums, helping each other, no thanks at all, glad I can help you, makes for me also a better use of the software

Henk
Checking the remote....

Empire
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Mon May 24, 2010 8:20 pm

Re:How do you change the Point Style/Shape

Post by Empire » Fri Jun 18, 2010 8:22 pm

Hi,

how can I get the bottom of the picture will not always Fr Fr Fr etc. .. or the date is?


Image

User avatar
HeinrichH
Gold Boarder
Gold Boarder
Posts: 187
Joined: Sun Jan 04, 2009 6:27 pm
Location: Emmen-Netherlands / Panoias-Portugal
Contact:

Re:How do you change the Point Style/Shape

Post by HeinrichH » Sun Jun 20, 2010 10:09 am

I don't understand the question, can you explain more detailed what you want?
Checking the remote....

Empire
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Mon May 24, 2010 8:20 pm

Re:How do you change the Point Style/Shape

Post by Empire » Sun Jun 20, 2010 10:19 am

Sorry for my English. This is not so good.
I would like to remove the graphic below, the date and day of week.

User avatar
HeinrichH
Gold Boarder
Gold Boarder
Posts: 187
Joined: Sun Jan 04, 2009 6:27 pm
Location: Emmen-Netherlands / Panoias-Portugal
Contact:

Re:How do you change the Point Style/Shape

Post by HeinrichH » Sun Jun 20, 2010 11:55 am

I don't know, mostly you want to know the date and time of the graphic, maybe you can find her http://www.gnuplot.info/demo/index.html some answers.
Be aware that not all functions are supported by Meteohub.
Checking the remote....

Post Reply