Skip to main content

A matplotlib/seaborn wrapper to create beautiful plots with predefined styles using pipelines

Project description

pltflow

What is pltflow?


  • pltflow is a wrapper for matplotlib/seaborn to create beautiful charts
  • It makes use of predifined styles to completely automate the chart creation process
  • It also uses the concept of pipelines to create charts as if one is following a recipe

pltflow is not intended for complex plot, but to prvide a quick and clean way to create beautiful plots. You dont need to know anything about styling to make a pretty chart. But of course you can modify any parameter using matplotlib/seaborn arguments.


✅  Installation

pltflow can be installed using pip.

pip install pltflow

📌  Requirements

  • python 3.6 or above
  • matplotlib 2.2 or above
  • seaborn 0.9.0 or above
  • pandas 1.0.0 or above

🔨 Usage 

*pltflow works with pandas dataframes as data source

  • It uses pipeline to convey the 'recipe' of the chart

(
   flow                                                            # from the pltflow package
   .plot(df, primary="YrSold",secondary ="ppsqm", style = "vox")   # plot the df, define variables and style
   .set_ylabel("PRICE PER M2")                                     # set the y label text
   .set_xlabel("YEAR SOLD")                                        # set the x label text
   .set_title("BOSTON PRICE PER SQUARE METER")                     # set the title text
   .set_subtitle("YEARS 2006 TO 2010 | FUNDA.COM")                 # set the subtitle text
   .color_by("Neighborhood")                       # color the chart by the neighborhood (different categories)
   .focus_on("CollgCr")                            # focus on a specific category (other will be grayed out)
   .set_figsize(8,4)                               # set the figure size
   .set_yticks(np.arange(1000, 1800, 200))         # set the spacing of the y axis labels
   .set_xticks(np.arange(2006, 2011))              # set the spacing of the x axis labels
   .show()                                         # SHOW!!! the graph is ready!
)


Currently there are 4 predifined styles: base, vox, mkbhd, and innocent.


styles




But more are coming soon!


🐜   Found a bug? Missing a specific feature?

Feel free to file a new issue 📫&nbsp with a respective title and description issue on the pltflow repository: ismaelcv.



📘  License

pltflowis released under the GNU Lesser General Public License (LGPL) license. All accompanying documentation and manual are released under the Creative Commons BY-SA 4.0 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pltflow-0.0.2.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pltflow-0.0.2-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file pltflow-0.0.2.tar.gz.

File metadata

  • Download URL: pltflow-0.0.2.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for pltflow-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1b53f69df6fe1a50bf975f421b589f463e793cad030c4dce00b4bc30af182823
MD5 1588b9306cb47580a81c61cc403a2c55
BLAKE2b-256 d6916d7dccae3d2124baaaac233f645d1aa8cc6a6b3336452c47c2782c157889

See more details on using hashes here.

File details

Details for the file pltflow-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pltflow-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for pltflow-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5a643ad2f40cda92636f6da0a46eb06578bcfa25621d791f11fcf8578d0afc16
MD5 2552c917cd1e94047e45e3082fdac5f2
BLAKE2b-256 4ce843282b913e7343a7d70f2944ed80b3b9c5e02b28e0b7ded0c4decfdd0f57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page