Git Product home page Git Product logo

paper-tips-and-tricks's Issues

Downside to using eps figures

Just thought that I'd mention that a downside to using eps for figures is that transparency is not supported. As an example, I have found that having a legend that is semi-transparent and overlaps a curve slightly can allow for a better figure.

pdfcrop alternatives

Loving this, and building on it has been a great exercise for our team.

One of my PCs is on Solus, and pdfcrop is not in the standard repositories. It depends on pdfedit, which is also unavailable and seems to have been abandoned long ago.

Any suggestions for auto-cropping with a pdfcrop drop-in replacement? This should be updated for a more modern, standard set of cli tools if they're being hard-coded via subprocess.

One script per figure

Just adding a comment here that I prefer to use one script (usually plot.py at top level) that has a positional command line argument (using argparse) for which figure(s) to create. This seems cleaner to me because you can keep your plotting functions all in one file, and generate multiple figures with a single command.

Tip about how to make matplotlib use Type 1 fonts

I had a journal request that your final PDF should not contain Type 1 fonts and in my case the culprit were matplotlib figures. I found that with this setting in ~/.config/matplotlib/matplotlibrc
you can make matplotlib avoid Type 1 fonts:

ps.useafm : True
pdf.use14corefonts : True
text.usetex : True

Maybe you consider this useful and can add it here somewhere.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.