Skip to content

Commit

Permalink
blk
Browse files Browse the repository at this point in the history
  • Loading branch information
relleums committed Mar 10, 2024
1 parent acc1e15 commit 4f97154
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion svg_cartesian_plot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
from . import svgcartesian
from . import color
from . import text
from . import image
from . import image
21 changes: 11 additions & 10 deletions svg_cartesian_plot/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,18 @@ def fig_write(fig, path):
svgcartesian.write(dwg=fig["dwg"], path=path)


def ax_add_pcolormesh(ax, z, colormap, x_bin_edges=None, y_bin_edges=None, **kwargs):

def ax_add_pcolormesh(
ax, z, colormap, x_bin_edges=None, y_bin_edges=None, **kwargs
):
"""
(x0, y1) (x1, y1)
+-----------+
| |
| |
| |
| |
+-----------+
(x0, y0) (x1, y0)
(x0, y1) (x1, y1)
+-----------+
| |
| |
| |
| |
+-----------+
(x0, y0) (x1, y0)
"""

z = np.asarray(z)
Expand Down
1 change: 1 addition & 0 deletions svg_cartesian_plot/image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import base64


def image_to_png_base64(mat):
assert len(mat.shape) == 3
assert mat.shape[2] == 3
Expand Down

0 comments on commit 4f97154

Please # to comment.