All Projects → mpastell → Rpyplot

mpastell / Rpyplot

R interface to matplotlib

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Rpyplot

Chartpy
Easy to use Python API wrapper to plot charts with matplotlib, plotly, bokeh and more
Stars: ✭ 426 (+3176.92%)
Mutual labels:  matplotlib
Vapeplot
matplotlib extension for vaporwave aesthetics
Stars: ✭ 483 (+3615.38%)
Mutual labels:  matplotlib
Mplcyberpunk
"Cyberpunk style" for matplotlib plots
Stars: ✭ 762 (+5761.54%)
Mutual labels:  matplotlib
Ai competitions
AI比赛相关信息汇总
Stars: ✭ 443 (+3307.69%)
Mutual labels:  matplotlib
Pynamical
Pynamical is a Python package for modeling and visualizing discrete nonlinear dynamical systems, chaos, and fractals.
Stars: ✭ 458 (+3423.08%)
Mutual labels:  matplotlib
Baby Names Analysis
Data ETL & Analysis on the dataset 'Baby Names from Social Security Card Applications - National Data'.
Stars: ✭ 557 (+4184.62%)
Mutual labels:  matplotlib
Pywaffle
🧇 Make Waffle Charts in Python.
Stars: ✭ 406 (+3023.08%)
Mutual labels:  matplotlib
Cartopy
Cartopy - a cartographic python library with matplotlib support
Stars: ✭ 857 (+6492.31%)
Mutual labels:  matplotlib
Mexican Government Report
Text Mining on the 2019 Mexican Government Report, covering from extracting text from a PDF file to plotting the results.
Stars: ✭ 473 (+3538.46%)
Mutual labels:  matplotlib
Adjusttext
A small library for automatically adjustment of text position in matplotlib plots to minimize overlaps.
Stars: ✭ 731 (+5523.08%)
Mutual labels:  matplotlib
Matplotlib Cn
matplotlib中文文档
Stars: ✭ 445 (+3323.08%)
Mutual labels:  matplotlib
Data Science Ipython Notebooks
Data science Python notebooks: Deep learning (TensorFlow, Theano, Caffe, Keras), scikit-learn, Kaggle, big data (Spark, Hadoop MapReduce, HDFS), matplotlib, pandas, NumPy, SciPy, Python essentials, AWS, and various command lines.
Stars: ✭ 22,048 (+169500%)
Mutual labels:  matplotlib
Youtube Report
📊 Generate a personal YouTube report from your Google Takeout data
Stars: ✭ 607 (+4569.23%)
Mutual labels:  matplotlib
Colorcet
A set of useful perceptually uniform colormaps for plotting scientific data
Stars: ✭ 438 (+3269.23%)
Mutual labels:  matplotlib
Geoplot
High-level geospatial data visualization library for Python.
Stars: ✭ 897 (+6800%)
Mutual labels:  matplotlib
Mpl Scatter Density
⚡️ Fast scatter density plots for Matplotlib ⚡️
Stars: ✭ 413 (+3076.92%)
Mutual labels:  matplotlib
Pyheat
pprofile + matplotlib = Python program profiled as an awesome heatmap!
Stars: ✭ 491 (+3676.92%)
Mutual labels:  matplotlib
Celluloid
🎥 Matplotlib animations made easy
Stars: ✭ 867 (+6569.23%)
Mutual labels:  matplotlib
Moonchart
Performance tear sheets and backtest analysis for Moonshot
Stars: ✭ 19 (+46.15%)
Mutual labels:  matplotlib
Notes Python
中文 Python 笔记
Stars: ✭ 6,127 (+47030.77%)
Mutual labels:  matplotlib

Rpyplot

R interface to matplotlib via Rcpp using Python 2.7 or 3.

Contains basic working interface to some basic with few options. Tested with Ubuntu 14.10 (System Python 2.7, 3.4) and Windows 7 (Anaconda Python 2.7, 3.4).

Why?

I often use Python and matplotlib for exploring measurement data (from e.g. accelerometers), even if I use R for the actual analysis. The reason is that I like to be able to flexibly zoom into different parts of the plot using the mouse and this works well for me with matplotlib. So I decided to try to call matplotlib from R using Rcpp and Python/C API. It was surprisingly simple to get it working so I put together this package.

Install

Install using devtools.

Ubuntu

You'll need to have Python with headers (python-dev in Ubuntu) and matplotlib:

sudo apt-get install python-dev python-matplotlib

Use devtools to install from R.

library(devtools)
install_github("mpastell/Rpyplot")

Windows

You'll need to have Rtools and Python with matplotlib installed and in your path. You'll also need to have libpythonXX.a in "$PYTHON\libs". You can use libpython from Christoph Gohlke's repository. Make sure you use the same architecture for R and Python.

Install libpython using pip (the version needs to match the install Python version, the url below is for Python3.4)

pip install wheel
pip install http://www.lfd.uci.edu/~gohlke/pythonlibs/6icuform/libpython-3.4.3-cp34-none-win_amd64.whl

library(devtools)
install_github("mpastell/Rpyplot", args = "--no-multiarch")

Use

To get started see:

library(Rpyplot)
example(pyplot)
example(pystep)
example(pycontourf)

Development

I developed the package to do quick interactive analysis and its not meant to interface all of pyplot. I will add more features to the package when I need them. If you want add functionality please do so and submit a pull request. You can add new plots and options easily in R (see R/Plot.R) without using C++. I have written a post to Rcpp gallery that tries to explain the C++ side of the code.

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].