I'm trying to visualize data where each X value has multiple Y values and I would like to distinguish each Y value visaully. This is the example code

```
xLables = ['A1','A2','A3','A4','A5']

YValues = [[1,2,3,4],[1,2,3,4,5,6,7],[1,2,3],[5,6,7],[1,2,3]]
X = [xLables[i] for i, data in enumerate(YValues) for j in range(len(data))]
Y = [val for data in YValues for val in data]

plt.scatter(X, Y)
plt.grid()
plt.show()

```

When I plot this , I get the following attached

[![enter image description here](https://i.stack.imgur.com/3xtfd.png)](https://i.stack.imgur.com/3xtfd.png)

Each X label has corresponding Y values ... For Ex: A1 has 1,2,3,4 , A2 has 1,2,3,4,5,6,7 and so on

I have two questions on this one

(1) Can I have different markers for different Y-values .. all 1's are stars , all 2's are diamonds , all 10's are circles ?

something like this may be

[![enter image description here](https://i.stack.imgur.com/0KuH6.png)](https://i.stack.imgur.com/0KuH6.png)

(2) Is there a better way to plot such 2D data and distingush them where each X has multiple Y values

Any suggestions/help is highly appreciated

Thanks

I tried to add markers and different colors , but they apply to all Y values for each X .. but not specific to each Y values..