Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output format for figures #12

Open
jhnnsnk opened this issue Dec 2, 2020 · 1 comment
Open

Output format for figures #12

jhnnsnk opened this issue Dec 2, 2020 · 1 comment
Assignees

Comments

@jhnnsnk
Copy link
Collaborator

jhnnsnk commented Dec 2, 2020

  • manuscript requires .eps
  • for raster plots, the best practice is currently to save as .svg and convert afterwards
    • conversion with inkscape is favorable but it is not available on clusters -> tiny conversion script
@jhnnsnk jhnnsnk self-assigned this Dec 2, 2020
@espenhgn
Copy link
Collaborator

A couple things to keep in mind (learned with LFPykernels submission to PLOSCB):

# use discrete colormaps:
cmap = plt.get_cmap('RdBu_r', 51)
im = ax.contourf(cmap=cmap, **kwargs)
# colorbars are by default rasterized, which is bad:
cbar = plt.colorbar(im, ax=ax)
cbar.solids.set_rasterized(False)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants