Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/scivision/python-matlab-examples
- Owner: scivision
- License: mit
- Created: 2015-04-01T16:54:02.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-01-17T04:20:37.000Z (10 months ago)
- Last Synced: 2024-05-02T03:09:30.650Z (7 months ago)
- Topics: geoscience, matplotlib, oct2py
- Language: Python
- Homepage:
- Size: 147 KB
- Stars: 6
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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)