Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9248449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:56:50+00:00 2026-06-18T09:56:50+00:00

I use the following gnuplot script in order to plot a data file reset

  • 0

I use the following gnuplot script in order to plot a data file

reset
unset key
set size 1,1

set xrange [-10.1:11]
set yrange [-45:45]

set xlabel 'x'
set lmargin 6
set label 1 "~x{0.7.}" font "Helvetica, 20" at graph -0.1, graph 0.5

set xtics 2
set ytics 15

set mxtics 5
set mytics 5

plot "pss_data.dat" u 1:2 w dots lc rgb 'black'

set term postscript eps enhanced "Helvetica" 20 size 7in, 5in
set output 'plot.eps'
replot

reset
set terminal windows

quit

The exported .eps file is the following.

enter image description here

Well, in fact this is the corresponding .pdf file using Adobe Acrobat XI in order to make the conversion. However, the .pdf output contains not only the plot but all the unwanted black area above it! In an attempt to get rid off the white area I used the command line

epstopdf plot.eps

The output is the following

enter image description here

Now, the white area has been removed but the label at the y axis is also missing!

Any ideas? I want to have in a .pdf file only the plot (without the above white area) but with the label at the y axis.

Many thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:56:52+00:00Added an answer on June 18, 2026 at 9:56 am

    I would avoid the conversion all together by using one of gnuplot’s pdf terminals (I like pdfcairo) and just use ylabel instead of set label 1 ... at graph.... Here’s a simple script that you can modify for your purposes:

    set term pdfcairo enhanced font "Helvetica,20"
    set output "test.pdf"
    set ylabel "~x{0.7.}" rotate by 0  #default rotation is 90
    set xlabel "x"
    plot sin(x)
    

    Ultimately, what is happening with your script is that gnuplot is putting the label off of the viewable canvas. Some reason adobe still puts the label on the (converted) output, but I would assert that they are wrong in this case — (they’re essentially ignoring your bounding box). Of course, you could move/adjust the bounding box as suggested in the answer by andyras — but I would argue that is a pretty hacky solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When plotting color-maps using gnuplot, I usually use the following lines: ... set palette
I use following complex data structure. departures = new TreeMap<String, Map<String, Set<MyObject>>>(); arrivals=new HashMap<String,
In order to run all my unittests I use following script where test_files is
I have the following file I want to plot using gnuplot bar graphs: Function
Hello Sir i want send list of data to php server i use following
I know that to create a file in c++ we use following code #include
I use following code to populate a Combo Box. It displays: System.Data.DataRowView instead of
i use following query to get all data which contains the some words (which
I use following Android theme in my Android manifest file: android:theme=@android:style/Theme.Translucent It's a translucent
Is there a method to use multiple pipes when reading data with Gnuplot? The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.