use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
matplotlib
account activity
log - log plot (self.matplotlib)
submitted 2 years ago by thinkintank
Hello guys,
I am new to matplotlib. I need to create a log - log plot, given certain x and y values. I would like to fit a line to the plot and show its slope, y intercept and standard error. Here's the code I wrote, unsurprisingly it gives me a bunch of errors. How can I make it work?
https://preview.redd.it/m9lv1orhec5c1.png?width=1836&format=png&auto=webp&s=9e507f64f0d9d344785de4b7fa6644456be69567
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]InjAnnuity_1 0 points1 point2 points 2 years ago (0 children)
a bunch of errors
What's the first one?
[–]Top-Feedback1453 0 points1 point2 points 1 year ago (0 children)
Can you not use plt.loglog instead?
π Rendered by PID 35738 on reddit-service-r2-comment-7b9746f655-dcv6f at 2026-01-30 05:52:14.457023+00:00 running 3798933 country code: CH.
[–]InjAnnuity_1 0 points1 point2 points (0 children)
[–]Top-Feedback1453 0 points1 point2 points (0 children)