#4 file output /device


> Two questions are (Linux platform)
> 1, how to save a ploting as gif or jpg?
> 2, how to change the plot back groud color?
> I have eps files, which give me black color on
> background when printed out,
> Thank you,


  • Alan W. Irwin

    Alan W. Irwin - 2009-11-14

    Gif output:
    For modern PLplot we do have -dev gif implemented as part of the gd device driver, but that is deprecated and will be eventually removed because all the gd related devices are poorly maintained. So a better alternative now is to use a modern png device, e.g., -dev pngcairo or -dev pngqt and then convert the result to gif with ImageMagick convert (if for some strange reason you prefer gif to png).

    JPEG output:

    Again, that is available for -dev jpeg as part of the gd device driver. However, for same reason use -dev jpgqt instead or else convert a png.

    Background colour:

    Use -bg command-line option. Note with modern PLplot you are also allowed totally or partially transparent backgrounds.

  • Alan W. Irwin

    Alan W. Irwin - 2009-11-14
    • assigned_to: nobody --> airwin
    • status: open --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks