Skip to content

2D colormesh plot #146

@Felix-neko

Description

@Felix-neko

Good evening! Cannot you please support a 2D colormesh plot? For example, if I want to plot something in polar coordinates, I have to somehow prepare an image data first.

In matplotlib it is made really simply:

import matplotlib
import matplotlib.pyplot as plt
import numpy as np

r_array = np.linspace(0, 2, 1000)
phi_array = np.linspace(0, 2 * np.pi, 1000)

r_grid, phi_grid, = np.meshgrid(r_array, phi_array)


z_grid = r_grid + phi_grid
x_grid = r_grid * np.cos(phi_grid)
y_grid = r_grid * np.sin(phi_grid)

plt.pcolormesh(x_grid, y_grid, z_grid)
plt.show()

Cannot you do something like that?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions