All Projects → dhaitz → Mplcyberpunk

dhaitz / Mplcyberpunk

Licence: mit
"Cyberpunk style" for matplotlib plots

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Mplcyberpunk

Scientific Visualization Book
An open access book on scientific visualization using python and matplotlib
Stars: ✭ 6,336 (+731.5%)
Mutual labels:  matplotlib, dataviz, plotting
joypy
Joyplots in Python with matplotlib & pandas 📈
Stars: ✭ 418 (-45.14%)
Mutual labels:  matplotlib, plotting
Adjusttext
A small library for automatically adjustment of text position in matplotlib plots to minimize overlaps.
Stars: ✭ 731 (-4.07%)
Mutual labels:  matplotlib, plotting
geneview
Genomics data visualization in Python by using matplotlib.
Stars: ✭ 38 (-95.01%)
Mutual labels:  matplotlib, plotting
dufte
📈 Minimalistic Matplotlib style
Stars: ✭ 196 (-74.28%)
Mutual labels:  matplotlib, plotting
planetMagFields
Routines to plot magnetic fields of planets in our solar system
Stars: ✭ 27 (-96.46%)
Mutual labels:  matplotlib, plotting
SciPlot-PyQt
A Matplotlib-wrapped user-interface for creating and editing publication-ready images and plots
Stars: ✭ 32 (-95.8%)
Mutual labels:  matplotlib, plotting
chronist
Long-term analysis of emotion, age, and sentiment using Lifeslice and text records.
Stars: ✭ 23 (-96.98%)
Mutual labels:  dataviz, matplotlib
microfilm
Creating figures and animations for multi-channel images with a focus on microscopy.
Stars: ✭ 22 (-97.11%)
Mutual labels:  matplotlib, plotting
Matplotlib Venn
Area-weighted venn-diagrams for Python/matplotlib
Stars: ✭ 260 (-65.88%)
Mutual labels:  matplotlib, plotting
Brokenaxes
Create matplotlib plots with broken axes
Stars: ✭ 266 (-65.09%)
Mutual labels:  matplotlib, plotting
vioplot
Development version of vioplot R package (CRAN maintainer)
Stars: ✭ 25 (-96.72%)
Mutual labels:  dataviz, plotting
texfig
Utility to generate PGF vector files from Python's Matplotlib plots to use in LaTeX documents.
Stars: ✭ 58 (-92.39%)
Mutual labels:  matplotlib, plotting
expyplot
Matplotlib for Elixir
Stars: ✭ 27 (-96.46%)
Mutual labels:  matplotlib, plotting
EOmaps
A library to create interactive maps of geographical datasets
Stars: ✭ 193 (-74.67%)
Mutual labels:  matplotlib, plotting
2021 course dev-rougier
NumFocus Academy - Matplotlib (beginner)
Stars: ✭ 54 (-92.91%)
Mutual labels:  dataviz, matplotlib
Pyplot.jl
Plotting for Julia based on matplotlib.pyplot
Stars: ✭ 347 (-54.46%)
Mutual labels:  matplotlib, plotting
Matplotlib Cheatsheet
Matplotlib 3.1 cheat sheet.
Stars: ✭ 2,806 (+268.24%)
Mutual labels:  matplotlib, dataviz
2021-bordeaux-dataviz
Scientific Visualization Crash Course (Python & Matplotlib)
Stars: ✭ 20 (-97.38%)
Mutual labels:  matplotlib, plotting
cplot
🌈 Plot complex functions
Stars: ✭ 75 (-90.16%)
Mutual labels:  matplotlib, plotting

mplcyberpunk

Latest PyPI version Build Status Python 3.7

A Python package on top of matplotlib to create 'cyberpunk' style plots with 3 additional lines of code.

Installation

pip install mplcyberpunk

Usage

After importing the package, the cyberpunk stylesheet (dark background etc.) is available via plt.style.use. The line glow and 'underglow' effects are added via calling add_glow_effects:

    import matplotlib.pyplot as plt
    import mplcyberpunk

    plt.style.use("cyberpunk")

    plt.plot([1, 3, 9, 5, 2, 1, 1], marker='o')
    plt.plot([4, 5, 5, 7, 9, 8, 6], marker='o')

    mplcyberpunk.add_glow_effects()

    plt.show()

Result:

This effect is currently only implemented for lines.

The individual steps are described here in more detail.

Add effects individually

Instead of add_glow_effects, you can add the line glow and underglow effects separately:

mplcyberpunk.make_lines_glow()
mplcyberpunk.add_underglow()

You can also add the effect to a specific axis object explicitly:

fig, ax = plt.subplots()
...
mplcyberpunk.make_lines_glow(ax)

Colormap

The default colormap is cool:

colormap

Others:

colormaps

Gallery

europe world

Requirements

Depends only on matplotlib.

Authors

mplcyberpunk was written by Dominik Haitz.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].