Skip to content

format setting error #468

Description

@Duanclub1996

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions