LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-17-2009, 06:15 PM   #1
DeepSeaNautilus
Member
 
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:
Code:
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

#comentario
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
DeepSeaNautilus
Member
 
Registered: Jul 2008
Posts: 65

Original Poster
Rep: Reputation: 15
Solved

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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:29 AM.

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