Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-17-2009, 06:15 PM   #1
Registered: Jul 2008
Posts: 65

Rep: Reputation: 15
moving the bottom margin in gnu plot bar chart

Hello, I made a script for gnuplot to create a bar chart. It is working perfectly well, except that the labels of the x axis don't appear completely in the bar chart.
I have this:
set encoding iso_8859_1

set terminal postscript color
set output "example2.eps"

set xrange [0:20]
set yrange [0:45000]
set xtics ("label1" 1, "label2" 2, "label3" 3, "label4" 4)
set xtics border in scale 1,0.5 nomirror offset character 0, 0, 0
set xtics rotate by -90
set grid
set style fill  solid 1.00 border -1

set data style boxes
set boxwidth 0.2

plot "data.dat" using 1:2 title "first record"
The tags are so large that I cant see them completly, is there a way I can expand the bottom margin so I can see the entire labels of the x axis, better yet, is there a way I can count the length of the largest label and then use this as a parameter to set the offset?

Last edited by DeepSeaNautilus; 03-17-2009 at 06:41 PM.
Old 03-18-2009, 08:00 PM   #2
Registered: Jul 2008
Posts: 65

Original Poster
Rep: Reputation: 15

I will answer myself so other users can benefit if they have the same doubt.
To move the bottom margin use set bmargin option. However it does not work right when using the set terminal png option. It does work correctly using the set postscript terminal with an eps output file.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] lost task bar and status bar how to get them back devmohan786 Linux - Software 2 07-13-2008 04:00 AM
About Gnu PLot lovingsanth Linux - Software 2 05-11-2008 06:58 PM
1. how to set labels bottom margin? 2. how to set all labels to be right to left typi dfgfdgdf General 0 03-20-2007 09:43 AM
I am trying to design a bar chart of sunspots over time? Tom "Techno" Earl Programming 2 02-19-2007 07:51 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration