ggnuplot formatting


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting ggnuplot formatting
# 8  
Old 10-20-2011
Right, sorry. Somehow I got the idea you were trying to label individual data points. Smilie
This User Gave Thanks to Corona688 For This Post:
# 9  
Old 10-20-2011
alright I'm getting some data that I can use thanks!

Now can I get this to be wider? it seems like it's cutting off the right edge,

Here's the script I'm using now. same data as before just about 98 samples of it.
Code:
# gnuplot script file for plotting bandwidth over time
#!/usr/local/bin/gnuplot
reset
set terminal png nocrop enhanced font "/usr/share/fonts/liberation/LiberationMono-Regular.ttf" 10
#set terminal png nocrop enhanced size 768,600 xffffff

set xdata time
set grid
set key box outside below
set xtics 75000

set timefmt "%m/%d/%y-%H:%M:%S"

set xtics rotate by -45
set ytics auto
set xlabel "Date (mm/dd/yy)"
set ylabel "datapoint"
set style data lines
set title "data for 5:5:4 over time"
set key below
set grid
set size 2.5,1.0


plot "statport_combo.out" using 1:15


Last edited by Scott; 10-20-2011 at 10:20 PM.. Reason: Code tags, please...
# 10  
Old 10-20-2011
I don't have the same font files or configuration as you so I really can't see what you're seeing. I don't even get text rotation.
This User Gave Thanks to Corona688 For This Post:
# 11  
Old 10-20-2011
that's probably the older version, 4.0 p0. I just upgraded to 4.4 p3. that supports the rotate. but the font stuff get's a little harsh. I just searched for ttfs and selected one that was present.
# 12  
Old 10-20-2011
I'm not talking about the font you picked, just that you used one at all.

I might need the same fonts to see the same problem anyway, if it's actually clipping like you think.

I've recompiled a gnuplot with TTF support and installed the same fonts you have. Your script bombs out with

Code:
plot "statport_combo.out" using 1:15
                                  ^
"./whatever.gnuplot", line 24: warning: Skipping data file with no valid points

plot "statport_combo.out" using 1:15
                                    ^
"./whatever.gnuplot", line 24: x range is invalid

...which makes sense because it has 3 columns, not 15...

Fixing that, I get a graph with only two labels because you've selected a tick size of 20 hours.

What exactly were you wanting again?

---------- Post updated at 05:51 PM ---------- Previous update was at 05:48 PM ----------

I've got it. If you don't stretch it with set size 2.5,1.0 then it prints all the labels. Set the resolution you want with set terminal png size x,y ... instead.
This User Gave Thanks to Corona688 For This Post:
# 13  
Old 10-20-2011
great thanks!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with formatting

Hi, I am new to UNIX and need your help in formatting the below input command to the desire output Input: CREATE UNIQUE INDEX XPKTABLE1 ( COL1, COL2 ) ON TABLE_NM; Output: COMMENT ON TABLE DB_NM.TABLE_NM AS 'PK=,COL1,COL2; '; In... (14 Replies)
Discussion started by: varun2327
14 Replies

2. Shell Programming and Scripting

Formatting

Good day All, I have requirement where my input data looks like below ] Message5 Expecting Output as 04/MAR/2104 ||| 23:15:45 ||| servername ||| NOTIFICATION |||message1||||||userId|||||| Message5 I could not use space delimiter as in the messages I would be having them as... (2 Replies)
Discussion started by: Tomlight
2 Replies

3. Shell Programming and Scripting

Formatting Help

Hi Guys, i have report that runs every 10 min and send the report of failed jobs to my mail. Currently i am using a command like this to send mail. mailx -t -s "FAILURE JOBS IN HYDRA $temp_date" addressee@domain.com < temp_file5 But i am getting mail in this format ....... (4 Replies)
Discussion started by: gkrish
4 Replies

4. Shell Programming and Scripting

help formatting

I need to format a txt file and convert it in CSV. Any "future" column is separated by a newline. FROM: XS1 1.43294 0.0 XS2 1.21824 0.0 TO: XS1,XS2 (2 Replies)
Discussion started by: alfreale
2 Replies

5. Shell Programming and Scripting

formatting of df -k

Hello, I am developing a platform Independant tool that should work for all major unix flavors outlined in this forum(Solaris,Linux, AIX, HPUX, SCO,BSD) Therefore, in order to cover all types of user community, I have deliberately posted the same message on every forum. Please do not think... (9 Replies)
Discussion started by: darsh123
9 Replies

6. Shell Programming and Scripting

Formatting

Is there a way to make a 2 column output out of the following : 1 2 3 4 5 6 Output : 1 2 3 4 5 6 Thanks, Prasanna (3 Replies)
Discussion started by: prasanna1157
3 Replies

7. Shell Programming and Scripting

formatting

I have file with different columns for ex. contents of file "txt" NAME AGE MARKS HARRY 23 89 TOM 12 67 BOB 23 11 and you see its not formatted.Now, I need the file "txt" to be formatted like COLUMN1 COLUMN2 COLUMN3 NAME AGE ... (3 Replies)
Discussion started by: vijay_0209
3 Replies

8. Shell Programming and Scripting

Formatting

I have next part of script: for i in $LIST do echo "`date +"%H:%M:%S"` Converting $i ..."; mysql -uroot some -sABe "ALTER TABLE $i ENGINE=$ENGINE"; done I want to get following output formatting: "OK" must be one under another :) ... (3 Replies)
Discussion started by: mirusnet
3 Replies

9. UNIX for Dummies Questions & Answers

formatting

Hi Again Guys , Please i installed linux RH 6.1 on Toshiba , 10G , RAM=128 , 600 MHZ . After i installed linux i got many error messages , seems it was not installed correctly , also when i finished installation it did not ask me for the 2nd installation CD , and when i logged as root , i... (5 Replies)
Discussion started by: tamemi
5 Replies

10. UNIX for Dummies Questions & Answers

formatting

is it possible to format a powerbook g4 mac? like totally erase the HD then pop in the Mac OS cd and it will boot up an install like windows or any linux? (5 Replies)
Discussion started by: xeron
5 Replies
Login or Register to Ask a Question