Posts by rms • 1 point
4 posts
-
0
votes1
answer81
viewsA: Color Bar Values in Matplotlib
According to the documentation, in English, the plt.colorbar uses a matplotlib.ScalarMappable as argument. That ScalarMappable has sufficient information about the gradient and the values associated…
-
0
votes1
answer54
viewsA: Regplot with year on X-axis (Python)
The ax.set_xticklabels accepts as argument a vector with the Labels to be displayed on the x-axis, but if this vector is larger than the vector with the handles, then only the first names are used.…
-
0
votes1
answer399
viewsA: Set the colors of a point on a matplotlib scatter chart
to documentation, in English, indicates that the scatter can receive an argument c which will be used to color the dots. This argument can receive a color, color sequence, etc. In particular, if…
-
0
votes1
answer52
viewsA: Extract multiple values from a variable
As indicated in the comments by @Magichat, this is a typical use of a loop for x in range(500): try: driver.find_element_by_xpath(f"/html/body/div[3]/div/div[2]/div/div[{x}]/div").click() the…