Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/scivision/python-matlab-examples

Examples of neat Python and Matlab plotting and other tasks & hacks
https://github.com/scivision/python-matlab-examples

geoscience matplotlib oct2py

Last synced: 14 days ago
JSON representation

Examples of neat Python and Matlab plotting and other tasks & hacks

Awesome Lists containing this project

README

        

# Python and Matlab plotting examples

[![ci](https://github.com/scivision/python-matlab-examples/actions/workflows/ci.yml/badge.svg)](https://github.com/scivision/python-matlab-examples/actions/workflows/ci.yml)

Examples of neat Python and Matlab / GNU Octave
[plotting](./PlotExamples)
and other tasks.

## File Description

* contourImage2.m: hack to work around Matlab R2014b/R2015a removal of
contour(), contourf() and contour3() handle graphics children that
formerly could be used to move contours into a 3-D plot. This
workaround first plots the image at z=0, and the contour at z=0,
then flattens the figure to an image and resizes to the original
data, allowing the new pcolor joint plot to be arbitrarily placed in 3-D.
* R2014bAxesMultiColormap.m: Matlab with independent colormaps and colorbars -- freezeColor is no longer necessary
* title_gitrev.py: label title in corner with git revision
* widgets_gui_matplotlib.py: How to make interactiave, backend-agnostics Matplotlib GUIs
* colormap_white_min.*: Matlab and Python examples of plots with white zero value and dark maximum value.

### Oct2Py

[Oct2Py](https://www.scivision.dev/run-matlab-code-from-python-oct2py)
allows running Matlab code from Python, transparently.

## Other neat tricks

* f2py calling [Fortran from Python](https://github.com/scivision/f2py-examples)