Raise ValueError('Unrecognized marker style Ĭolor_map = įig = pl.scatter(locX, locY, c=colors, s=30, cmap='spectral')įig = pl. Marker_obj = mmarkers.MarkerStyle(marker)įile "/usr/lib/python3/dist-packages/matplotlib/markers.py", line 162, in _init_įile "/usr/lib/python3/dist-packages/matplotlib/markers.py", line 236, in set_marker Linewidths=linewidths, verts=verts, **kwargs)įile "/usr/lib/python3/dist-packages/matplotlib/axes.py", line 6298, in scatter ValueError: could not convert string to float: '+'ĭuring handling of the above exception, another exception occurred:įile "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 3087, in scatter Return array(a, dtype, copy=False, order=order) The scatter() function plots one dot for each observation. Vertices = np.asarray(vertices, np.float_)įile "/usr/lib/python3/dist-packages/numpy/core/numeric.py", line 460, in asarray marker markers.MarkerStyle (marker's') for temp in zip (y): plt.scatter (x, temp, color'green', markermarker, facecolors'none') plt.show () or, use plt.plot () with fillstyle 'none' and linestyle 'none' but since the marker keyword in plt.plot does not support MarkerStyle objects you have to specify the style inline, i.e. With Pyplot, you can use the scatter() function to draw a scatter plot. Here what I have tried: > s = įile "/usr/lib/python3/dist-packages/matplotlib/markers.py", line 233, in set_markerįile "/usr/lib/python3/dist-packages/matplotlib/path.py", line 133, in _init_ import plotly.express as px df px.data.iris() fig px.scatter(df, x'sepalwidth', y'sepallength', color'species') fig.updatetraces(markerdict(size12, linedict(width2, color'DarkSlateGrey')), selectordict(mode'markers')) fig. I would like to make a plot with different markers and different colors according to the values of 2 external vectors. Here is an example of adding a marker border to a faceted scatter plot created using Plotly Express.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |