How do I enable the pngcairo terminal in Gnuplot

后端 未结 3 1611
一向
一向 2021-01-01 20:00

I would like to plot a figure to PNG format (avoiding using convert), however my Gnuplot distribution does not offer the PNGCAIRO terminal. How can I install/enable it? I us

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-01 20:36

    I upgrade gnuplot to 5.0.1 and encounter the same issue. Here is what I do.

    To install gnuplot 5.0.1, download the source file from here, and then:

    #decompress it:
    tar -xvf gnuplot-5.0.1.tar.gz
    
    #install the dependency libraries for cairo-based terminals, like pdfcairo, pngcairo
    sudo apt-get install libcairo2-dev
    sudo apt-get install libpango1.0-dev
    
    
    #build it:
    cd gnuplot-5.0.1 
    ./configure 
    make
    
    #install it:
    sudo make install
    

提交回复
热议问题