Skip to content
  • View menu
  • View sidebar

bioinfo core

Index & solution of bioInfo utilities

  • Home
  • All entries
  • Blogs
  • Contact
  • About

Categories

  • Between languages (7)
  • Blogs (8)
  • Python (35)
  • R (1)
  • Unix (37)

Tags

bedfile Blogs conda Excel html numpy Pandas Python R slurm Unix
01/11/202301/19/2023 by bioinfocore

Rasterize points in scatterplot

  • Python
  • Python

This is needed when the plot has too many points but you would still want the legend and label to be saved as “pdf” to be editable. Works for large heatmaps too.

ax.scatter(..., rasterized=True)
ax.pcolormeash(..., rasterized=True)

Reference:
https://btjanaka.net/blog/matplotlib-figures/

Post navigation

← Previous Post python select items from a list using a boolean array
Copyright 2024 | by bioinfocore