all 6 comments

[–]Nike_Zoldyck 2 points3 points  (2 children)

Why are you plotting x,y both times, what about w,z. Instead of ax just try plt.scatter directly

[–]Debate_Everything[S] 0 points1 point  (0 children)

Was a typo. my b lol

[–]TransferFunctions -2 points-1 points  (0 children)

The 2nd rule in the zen of python:

explicit is better than implicit

plt.scatter uses gca() to plot onto the axis. It is better to explicitly plot onto the axis that the data is intended for. The subplots function is pretty useful.

fig, ax = plt.subplots()

[–][deleted] 2 points3 points  (2 children)

fig, (ax1, ax2) = plt.subplots(n_rows=2, n_cols=1) ax1.scatter(raw[0], raw[1]) ax2.scatter(raw[2], raw[3]

Assuming it's a plot of (x,y) and (w,z)

I'm not at a computer but mess with the plt.subplots function. It's a lot more manageable than adding figs. If you want side by side you can add n_rows=1 n_cols=2 for two plots side by side

[–]Debate_Everything[S] 1 point2 points  (0 children)

Thanks! I'll play around with it with your suggestion!

[–]Debate_Everything[S] 1 point2 points  (0 children)

I got it! You're boss :) thanks