I usually make it like this when I take only one dot in matplotlib
from matplotlib.pyplot import *
x = 10
y = 100
plot(x, y, "k*", label="Global Optimum")
legend()
show()
But when I did this, the star was marked twice like * * Global Optimum
on the legend.
I want to make * Global Optimum
appear only once, but how can I reduce the number of stars?
legend(numpoints=1)
Call legend to .
Since the author said, "We usually do this," to fix one asterisk with the default setting, use the matplotlibc file
legend.numpoints : 1 # the number of points in the legend line
Please add.
919 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
583 PHP ssh2_scp_send fails to send files as intended
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
622 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.