PlotComplexPlane
Python library for plotting complex functions transformations
It can...
- plot complex planes (both transformed and original)
- plot transformations of specific areas (both transformed and original)
- plot lines parallel to real or imaginary axis (both transformed and original)
Usage
plotcp
To plot f(z) = (z+1)/z with x bound from -4 to 4 and y bound from -4 to 4
from plotcp import plotcp
def f(z: complex) -> complex: # Define function to plot
return (z+1)/z
# Call plotcp
# Second and third arguments define limits of a plot
ax = plotcp(f, (-4, 4), (-4, 4))
For full parameters list check help(plotcp.plotcp)
plot_complex_points
from cmath import sin
import matplotlib.pyplot as plt
import numpy as np
from plotcp import plot_complex_points
def f(z: compex) -> complex: # Define function to plot
return sin(z)
# Define area to be plotted
top = [x + 2 * 1j for x in np.linspace(1, 2, 5)]
bottom = [x + 1 * 1j for x in np.linspace(1, 2, 5)]
left = [1 + y * 1j for y in np.linspace(1, 2, 5)]
right = [2 + y * 1j for y in np.linspace(1, 2, 5)]
# Plot original area
ax = plot_complex_points(top)
ax = plot_complex_points(bottom, ax=ax)
ax = plot_complex_points(left, ax=ax)
ax = plot_complex_points(right, ax=ax)
# Apply function to area and plot it on a new plot
ax2 = plot_complex_points([f(z) for z in top])
ax2 = plot_complex_points([f(z) for z in bottom], ax=ax2)
ax2 = plot_complex_points([f(z) for z in left], ax=ax2)
ax2 = plot_complex_points([f(z) for z in right], ax=ax2)
plt.show()
For full parameters list check help(plotcp.plot_complex_points)
Metadata
Release files for plotcp 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| plotcp-0.3.1.tar.gz | 15.9 kB | Without provenance | Details for plotcp-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plotcp-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for plotcp-0.3.1-py3-none-any.whl |
Total release size: 32.1 kB
Release files / plotcp-0.3.1.tar.gz
| Download URL | plotcp-0.3.1.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fa8bedf648e20b967b294445cc47a878aea82ef06b4f610ef676ae8301e4f4d
|
|
BLAKE2b-256 checksum How to use checksums |
504e51b0037c8896c1741f9096d8092a37429d1c42553c72a9d2eccabb89a0ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.2 Windows/10
|
Release files / plotcp-0.3.1-py3-none-any.whl
| Download URL | plotcp-0.3.1-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f47e29564189b7c12c5cef3cd96ac81dc60b32cb04ac623717a76047fbc7565
|
|
BLAKE2b-256 checksum How to use checksums |
6197d0fc049ee5d6a55ec926492c63a637e6e540bdaf9437d8af90b01cd1b120
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.2 Windows/10
|
Security for plotcp 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.