[Tutor] Issues Inserting Graphical Overlay Using Matplotlib Patches
Stephen Malcolm
stephen_malcolm at hotmail.com
Tue Sep 29 01:53:55 EDT 2020
Hi Dennis,
Thanks for the response.
I’ve studied those two lines, and I’m struggling to come up with a solution. I think the word ‘data’ should be replaced with something else. I’ve tried replacing with x or y...however, my plot with the ellipse does not appear.
I know how to write these two lines when I have the x and y data incorporated in my code. The word data would be replaced with xys.
i.e. import matplotlib.pyplot as plt
xs = [10, 100, 25]
ys = [125, 26, 66]
plt.scatter(xs,ys)
However, when pulling the data from Panda, there is a slightly different rule..that’s where I’m getting lost.
Hoping you can help.
Kind Regards,
Stephen
Sent from my iPhone
> On 2020. Sep 29., at 1:02, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
>
> On Mon, 28 Sep 2020 16:24:08 +0000, Stephen Malcolm
> <stephen_malcolm at hotmail.com> declaimed the following:
>
>> I've highlighted the code (in red) I'm using for this specific operation i.e. the stats and overlay part (and where I'm
>
> Plain text only -- no colors, no images.
>
>> graph.scatter(data[:,0])data[:,1])
>> graph.scatter(mean[0], mean[1])
>
> Compare these two lines closely. That should provide you with the
> solution.
>
>
> --
> Wulfraed Dennis Lee Bieber AF6VN
> wlfraed at ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list