rustplotlib 1.0.1__tar.gz → 2.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/Cargo.lock +1 -1
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/Cargo.toml +1 -1
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/PKG-INFO +1 -1
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/pyproject.toml +1 -1
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/__init__.py +11 -0
- rustplotlib-2.0.0/python/rustplotlib/axes/__init__.py +10 -0
- rustplotlib-2.0.0/python/rustplotlib/backends/backend_inline.py +24 -0
- rustplotlib-2.0.0/python/rustplotlib/cm.py +56 -0
- rustplotlib-2.0.0/python/rustplotlib/collections.py +70 -0
- rustplotlib-2.0.0/python/rustplotlib/figure.py +10 -0
- rustplotlib-2.0.0/python/rustplotlib/lines.py +47 -0
- rustplotlib-2.0.0/python/rustplotlib/patheffects.py +36 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/pyplot.py +486 -19
- rustplotlib-2.0.0/python/rustplotlib/spines.py +22 -0
- rustplotlib-2.0.0/python/rustplotlib/text.py +30 -0
- rustplotlib-2.0.0/python/rustplotlib/transforms.py +68 -0
- rustplotlib-2.0.0/src/artists/broken_barh.rs +135 -0
- rustplotlib-2.0.0/src/artists/contour3d.rs +264 -0
- rustplotlib-2.0.0/src/artists/eventplot.rs +137 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/image.rs +217 -22
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/legend.rs +18 -5
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/mod.rs +5 -0
- rustplotlib-2.0.0/src/artists/radar.rs +228 -0
- rustplotlib-2.0.0/src/artists/trisurf3d.rs +235 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/axes.rs +291 -15
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/figure.rs +558 -6
- rustplotlib-2.0.0/src/lib.rs +47 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/text.rs +71 -23
- rustplotlib-2.0.0/tests/test_new_features.py +254 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/tests/test_phase8.py +13 -5
- rustplotlib-1.0.1/python/rustplotlib/backends/backend_inline.py +0 -4
- rustplotlib-1.0.1/src/lib.rs +0 -24
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/.github/workflows/ci.yml +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/.gitignore +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/LICENSE +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/README.md +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/ROADMAP.md +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/dados/Data/PerfisTemp_rustplotlib.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/animation.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/backends/__init__.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/backends/backend_pdf.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/colors.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/cycler.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/dates.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/font_manager.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/gridspec.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/mpl_toolkits/__init__.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/mpl_toolkits/mplot3d/__init__.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/patches.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/pyplot.pyi +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/style/__init__.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/ticker.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/python/rustplotlib/widgets.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/bar.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/bar3d.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/barh.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/boxplot.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/contour.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/errorbar.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/fill_between.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/fill_betweenx.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/hexbin.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/hist.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/line2d.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/line3d.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/patches.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/pie.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/quiver.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/scatter.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/scatter3d.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/stem.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/step.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/streamplot.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/surface3d.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/violin.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/artists/wireframe3d.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/axes3d.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/colors.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/fonts/DejaVuSans.ttf +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/projection3d.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/svg_renderer.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/ticker.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/transforms.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/src/window.rs +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/tests/test_3d.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/tests/test_benchmark.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/tests/test_colors.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/tests/test_figure.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/tests/test_phase6_7.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/tests/test_pyplot.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/tests/test_ticker.py +0 -0
- {rustplotlib-1.0.1 → rustplotlib-2.0.0}/tests/test_transforms.py +0 -0
|
@@ -11,9 +11,20 @@ from rustplotlib import patches
|
|
|
11
11
|
from rustplotlib import colors
|
|
12
12
|
from rustplotlib import gridspec
|
|
13
13
|
from rustplotlib import cycler
|
|
14
|
+
from rustplotlib import axes
|
|
15
|
+
from rustplotlib import figure
|
|
16
|
+
from rustplotlib import collections
|
|
17
|
+
from rustplotlib import cm
|
|
18
|
+
from rustplotlib import patheffects
|
|
19
|
+
from rustplotlib import transforms
|
|
20
|
+
from rustplotlib import lines
|
|
21
|
+
from rustplotlib import text
|
|
22
|
+
from rustplotlib import spines
|
|
14
23
|
|
|
15
24
|
__all__ = ["pyplot", "style", "animation", "widgets", "dates", "backends",
|
|
16
25
|
"font_manager", "ticker", "patches", "colors", "gridspec", "cycler",
|
|
26
|
+
"axes", "figure", "collections", "cm", "patheffects", "transforms",
|
|
27
|
+
"lines", "text", "spines",
|
|
17
28
|
"__version__", "use"]
|
|
18
29
|
|
|
19
30
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Jupyter inline display backend for rustplotlib."""
|
|
2
|
+
|
|
3
|
+
import base64
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def display_figure(fig):
|
|
7
|
+
"""Display a figure inline in Jupyter.
|
|
8
|
+
|
|
9
|
+
Parameters
|
|
10
|
+
----------
|
|
11
|
+
fig : RustFigure
|
|
12
|
+
The Rust figure object (not the FigureProxy).
|
|
13
|
+
"""
|
|
14
|
+
try:
|
|
15
|
+
from IPython.display import display, Image
|
|
16
|
+
png_bytes = fig.render_to_png_bytes()
|
|
17
|
+
display(Image(data=bytes(png_bytes)))
|
|
18
|
+
except ImportError:
|
|
19
|
+
pass
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def configure_inline_support(shell=None, backend=None):
|
|
23
|
+
"""Configure Jupyter to display rustplotlib figures inline."""
|
|
24
|
+
pass
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"""Colormap module compatibility stub for matplotlib.cm."""
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def get_cmap(name='viridis', lut=None):
|
|
5
|
+
"""Get a colormap by name (returns the name string as a stub)."""
|
|
6
|
+
return name
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# Common colormaps as attributes
|
|
10
|
+
viridis = 'viridis'
|
|
11
|
+
plasma = 'plasma'
|
|
12
|
+
inferno = 'inferno'
|
|
13
|
+
magma = 'magma'
|
|
14
|
+
cividis = 'cividis'
|
|
15
|
+
twilight = 'twilight'
|
|
16
|
+
turbo = 'turbo'
|
|
17
|
+
hot = 'hot'
|
|
18
|
+
cool = 'cool'
|
|
19
|
+
gray = 'gray'
|
|
20
|
+
grey = 'gray'
|
|
21
|
+
jet = 'jet'
|
|
22
|
+
spring = 'spring'
|
|
23
|
+
summer = 'summer'
|
|
24
|
+
autumn = 'autumn'
|
|
25
|
+
winter = 'winter'
|
|
26
|
+
bone = 'bone'
|
|
27
|
+
copper = 'copper'
|
|
28
|
+
pink = 'pink'
|
|
29
|
+
binary = 'binary'
|
|
30
|
+
ocean = 'ocean'
|
|
31
|
+
terrain = 'terrain'
|
|
32
|
+
Blues = 'Blues'
|
|
33
|
+
Reds = 'Reds'
|
|
34
|
+
Greens = 'Greens'
|
|
35
|
+
Oranges = 'Oranges'
|
|
36
|
+
Purples = 'Purples'
|
|
37
|
+
YlOrRd = 'YlOrRd'
|
|
38
|
+
YlGnBu = 'YlGnBu'
|
|
39
|
+
RdYlBu = 'RdYlBu'
|
|
40
|
+
RdBu = 'RdBu'
|
|
41
|
+
PiYG = 'PiYG'
|
|
42
|
+
PRGn = 'PRGn'
|
|
43
|
+
BrBG = 'BrBG'
|
|
44
|
+
Spectral = 'Spectral'
|
|
45
|
+
coolwarm = 'coolwarm'
|
|
46
|
+
bwr = 'bwr'
|
|
47
|
+
seismic = 'seismic'
|
|
48
|
+
Set1 = 'Set1'
|
|
49
|
+
Set2 = 'Set2'
|
|
50
|
+
Set3 = 'Set3'
|
|
51
|
+
Pastel1 = 'Pastel1'
|
|
52
|
+
Pastel2 = 'Pastel2'
|
|
53
|
+
tab10 = 'tab10'
|
|
54
|
+
tab20 = 'tab20'
|
|
55
|
+
tab20b = 'tab20b'
|
|
56
|
+
tab20c = 'tab20c'
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""Compatibility stub for matplotlib.collections module."""
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class LineCollection:
|
|
5
|
+
"""Stub for matplotlib.collections.LineCollection."""
|
|
6
|
+
|
|
7
|
+
def __init__(self, segments, **kwargs):
|
|
8
|
+
self.segments = segments
|
|
9
|
+
|
|
10
|
+
def set_array(self, a):
|
|
11
|
+
pass
|
|
12
|
+
|
|
13
|
+
def set_cmap(self, cmap):
|
|
14
|
+
pass
|
|
15
|
+
|
|
16
|
+
def set_clim(self, vmin, vmax):
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
def set_linewidth(self, lw):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
def set_color(self, c):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def set_alpha(self, a):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class PathCollection:
|
|
30
|
+
"""Stub for matplotlib.collections.PathCollection."""
|
|
31
|
+
|
|
32
|
+
def __init__(self, **kwargs):
|
|
33
|
+
pass
|
|
34
|
+
|
|
35
|
+
def set_offsets(self, offsets):
|
|
36
|
+
pass
|
|
37
|
+
|
|
38
|
+
def set_array(self, a):
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
def set_clim(self, vmin, vmax):
|
|
42
|
+
pass
|
|
43
|
+
|
|
44
|
+
def set_sizes(self, s):
|
|
45
|
+
pass
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class PatchCollection:
|
|
49
|
+
"""Stub for matplotlib.collections.PatchCollection."""
|
|
50
|
+
|
|
51
|
+
def __init__(self, patches, **kwargs):
|
|
52
|
+
self.patches = patches
|
|
53
|
+
|
|
54
|
+
def set_array(self, a):
|
|
55
|
+
pass
|
|
56
|
+
|
|
57
|
+
def set_cmap(self, cmap):
|
|
58
|
+
pass
|
|
59
|
+
|
|
60
|
+
def set_clim(self, vmin, vmax):
|
|
61
|
+
pass
|
|
62
|
+
|
|
63
|
+
def set_alpha(self, a):
|
|
64
|
+
pass
|
|
65
|
+
|
|
66
|
+
def set_edgecolor(self, c):
|
|
67
|
+
pass
|
|
68
|
+
|
|
69
|
+
def set_facecolor(self, c):
|
|
70
|
+
pass
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Compatibility stub for matplotlib.figure module."""
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Figure:
|
|
5
|
+
"""Compatibility stub for matplotlib.figure.Figure.
|
|
6
|
+
|
|
7
|
+
Scripts that do `from matplotlib.figure import Figure` for type checking
|
|
8
|
+
or isinstance() checks can use this stub.
|
|
9
|
+
"""
|
|
10
|
+
pass
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""Lines module compatibility."""
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Line2D:
|
|
5
|
+
def __init__(self, xdata, ydata, **kwargs):
|
|
6
|
+
self.xdata = xdata
|
|
7
|
+
self.ydata = ydata
|
|
8
|
+
|
|
9
|
+
def set_data(self, x, y):
|
|
10
|
+
self.xdata = x
|
|
11
|
+
self.ydata = y
|
|
12
|
+
|
|
13
|
+
def get_xdata(self):
|
|
14
|
+
return self.xdata
|
|
15
|
+
|
|
16
|
+
def get_ydata(self):
|
|
17
|
+
return self.ydata
|
|
18
|
+
|
|
19
|
+
def set_color(self, c):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
def set_linewidth(self, lw):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def set_linestyle(self, ls):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def set_marker(self, m):
|
|
29
|
+
pass
|
|
30
|
+
|
|
31
|
+
def set_label(self, label):
|
|
32
|
+
pass
|
|
33
|
+
|
|
34
|
+
def get_color(self):
|
|
35
|
+
return 'blue'
|
|
36
|
+
|
|
37
|
+
def get_label(self):
|
|
38
|
+
return ''
|
|
39
|
+
|
|
40
|
+
def remove(self):
|
|
41
|
+
pass
|
|
42
|
+
|
|
43
|
+
def set_visible(self, b):
|
|
44
|
+
pass
|
|
45
|
+
|
|
46
|
+
def get_visible(self):
|
|
47
|
+
return True
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Path effects for rustplotlib (compatibility module)."""
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class AbstractPathEffect:
|
|
5
|
+
pass
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Normal(AbstractPathEffect):
|
|
9
|
+
def __init__(self, **kwargs):
|
|
10
|
+
pass
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Stroke(AbstractPathEffect):
|
|
14
|
+
def __init__(self, linewidth=3, foreground='black', **kwargs):
|
|
15
|
+
self.linewidth = linewidth
|
|
16
|
+
self.foreground = foreground
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class withStroke(Stroke):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class SimplePatchShadow(AbstractPathEffect):
|
|
24
|
+
def __init__(self, offset=(2, -2), shadow_rgbFace='black', alpha=0.3, **kwargs):
|
|
25
|
+
self.offset = offset
|
|
26
|
+
self.shadow_rgbFace = shadow_rgbFace
|
|
27
|
+
self.alpha = alpha
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class withSimplePatchShadow(SimplePatchShadow):
|
|
31
|
+
pass
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class SimpleLineShadow(AbstractPathEffect):
|
|
35
|
+
def __init__(self, offset=(2, -2), shadow_color='black', alpha=0.3, **kwargs):
|
|
36
|
+
pass
|