Skip to content

ValueError: Unable to determine Axes to steal space for Colorbar #2

@TheGreatDeadOne

Description

@TheGreatDeadOne

Hello, I'm having the following problem when trying to plot the spin texture graph using vaspkit (1.5.0):

-->> (07) Reading Plot Setting from the ~/.vaspkit File.
Traceback` (most recent call last):
File "/var/home/gabriel/Downloads/teste_beta/.zpuavuqx", line 211, in
plt.colorbar(sm, ticks = tk, shrink = 0.5, format='%.2f')
File "/var/home/gabriel/miniforge3/lib/python3.10/site-packages/matplotlib/pyplot.py", line 2326, in colorbar
ret = gcf().colorbar(mappable, cax=cax, ax=ax, **kwargs)
File "/var/home/gabriel/miniforge3/lib/python3.10/site-packages/matplotlib/figure.py", line 1285, in colorbar
raise ValueError(
ValueError: Unable to determine Axes to steal space for Colorbar. Either provide the cax argument to use as the Axes for the Colorbar, provide the ax argument to steal space from it, or add mappable to an Axes.
-->> (08) Written SPINTEXTURE_2D.jpg File.
``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions