mplx

matplotlib extension package

https://github.com/tomographyyy/mplx

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.5%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

matplotlib extension package

Basic Info
  • Host: GitHub
  • Owner: tomographyyy
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Size: 29.3 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 3
Created almost 2 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License Citation

README.md

mplx

matplotlib extension package

Install

sh python -m pip install git+https://github.com/tomographyyy/mplx.git

Sample code

```python import numpy as np import mplx import matplotlib.pyplot as plt import matplotlib.markers as markers

along = mplx.Along() fig, ax = plt.subplots(figsize=(12,8),dpi=100) x = np.linspace(0,3, num=23) y = np.sin(x * 10) line0, = ax.plot(x,y+1, c="k", zorder=1, lw=1.5) line1, = ax.plot(x,y , c="k", zorder=1, lw=1.5) line2, = ax.plot(x,y-1, c="k", zorder=1, lw=1.5) ax.setxlim(0,2) ax.setylim(-2.1,2.1) ax.setaspect(0.4) loc = np.arange(0,1.01,0.02) arrow2 = along.gethalfarrowdouble(headlength=0.7, headangle=20, pad=0.4)

along.plot(line0, loc, marker=markers.CARETDOWNBASE, fillstyle="full", rotate=180, reflect=False, margin=0, kw=dict(zorder=0, markerfacecolor="k", markeredgecolor="none", markersize=10)) along.plot(line1, loc, marker="o", fillstyle="top", rotate=0 , reflect=True, margin=0, kw=dict(zorder=0, markerfacecolor="C0", markeredgecolor="none", markersize=12)) along.plot(line2, loc, marker=arrow2, fillstyle="none", rotate=0 , reflect=False, margin=0, kw=dict(zorder=0, markerfacecolor="none", markeredgecolor="C2", markersize=20, markeredgewidth=2)) ```

Output:

Owner

  • Name: Tomohiro TAKAGAWA
  • Login: tomographyyy
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Takagawa"
  given-names: "Tomohiro"
  orcid: "https://orcid.org/0000-0002-2783-5951"
title: "Matplotlib Extension"
version: 0.0.3
doi: 10.5281/zenodo.10907545
date-released: 2024-04-02
url: "https://github.com/tomographyyy/mplx"

GitHub Events

Total
Last Year

Dependencies

requirements.txt pypi
  • matplotlib *
  • numpy *
setup.py pypi