Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format setting error #468

Open
Duanclub1996 opened this issue Nov 8, 2024 · 0 comments
Open

format setting error #468

Duanclub1996 opened this issue Nov 8, 2024 · 0 comments

Comments

@Duanclub1996
Copy link

Description

I'm not sure if this is a bug. When I want to set the format in a loop, this exception occurs.
image

Steps to reproduce

fig = pplt.figure(space=0.8 ,refwidth='18em', wspace=2.6, hspace=3, refaspect = 0.618*2,span=False,sharey=False,sharex=False)
for i,num in enumerate(num_list):
    data = np.load(f'/notebook_workspace/dyq/dianji_project/result/feature_{num}.npy')
    label = np.load(f'/notebook_workspace/dyq/dianji_project/result/label_{num}.npy').reshape(-1)
    data = data.reshape(-1,5*128)
    # print(data.shape)
    x,y = TSNE(data)
    ax=fig.subplot(2,3,i+1)
    ax.scatter(x,y,c=label,s=2,a=0.8)
    fig.format(title=subtitle[i],fontsize=12)
    # ax.set_title(f'{subtitle[i]}')

Proplot version

image

matplotlib 3.8.0
proplot 0.9.91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant