{"id":27253,"library":"prettyplotlib","title":"Prettyplotlib","description":"Prettyplotlib is a small library that patches matplotlib to provide more aesthetically pleasing default styles and color palettes. The current version is 0.1.7, but the library is effectively unmaintained (last release 2014) and has known issues with modern matplotlib.","status":"deprecated","version":"0.1.7","language":"python","source_language":"en","source_url":"https://github.com/olgabot/prettyplotlib","tags":["matplotlib","styling","legacy"],"install":[{"cmd":"pip install prettyplotlib","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core dependency; prettyplotlib patches matplotlib's style.","package":"matplotlib","optional":false}],"imports":[{"note":"Star import is deprecated and can cause namespace conflicts.","wrong":"from prettyplotlib import *","symbol":"prettyplotlib","correct":"import prettyplotlib as ppl"}],"quickstart":{"code":"import matplotlib.pyplot as plt\nimport prettyplotlib as ppl\nimport numpy as np\n\n# Instead of calling ppl.plot, you can use ppl to set the style, then use matplotlib as usual.\nppl.pretty()  # Apply the pretty style\n\n# Example: scatter plot\nx = np.random.randn(100)\ny = np.random.randn(100)\nplt.scatter(x, y)\nplt.title('Prettyplotlib Scatter')\nplt.show()","lang":"python","description":"Apply prettyplotlib's style using ppl.pretty(), then use matplotlib as usual."},"warnings":[{"fix":"Avoid mixing plt.style.use() with prettyplotlib. Either use one or the other.","message":"prettyplotlib.pretty() may override plt.style.use and cause unexpected interactions with matplotlib rcParams. Use with caution.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider alternatives like Seaborn or custom styles. Prettyplotlib is no longer maintained.","message":"prettyplotlib uses deprecated matplotlib APIs and may not work with matplotlib >= 3.0. Many functions like 'pcolormesh' have changed signatures.","severity":"gotcha","affected_versions":"matplotlib >= 3.0"},{"fix":"Migrate to Seaborn, plotnine, or use matplotlib's built-in style sheets or 'seaborn-v0_8' styles.","message":"The library is effectively deprecated; no updates since 2014. It will likely break with newer Python/matplotlib versions.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Downgrade matplotlib to version < 3.0, or use an alternative library like Seaborn.","cause":"prettyplotlib imports deprecated matplotlib internals that were removed in newer matplotlib versions.","error":"AttributeError: module 'matplotlib' has no attribute 'patches'"},{"fix":"Run 'pip install prettyplotlib' in your current environment.","cause":"Not installed, or installed in a different environment.","error":"ModuleNotFoundError: No module named 'prettyplotlib'"},{"fix":"Avoid using prettyplotlib; use matplotlib directly with custom styles.","cause":"prettyplotlib's monkey-patching may override matplotlib's plot signature incorrectly in newer matplotlib versions.","error":"TypeError: plot() got an unexpected keyword argument 'linewidth'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}