ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1.1K
active users

#matplotlib

0 posts0 participants0 posts today

Jebus.. #Python and all it's batteries. So #Matplotlib knows how to talk #SVG already. I just started to speculate on how hard that would be to implement and.. it's already there built into Matplotlib.

Well. That worked out rather nicely then.

Being back working in Python feels way too magical at times.

Turns out the mechanisms I'd already put in can do graphs and plots already with clean readable markdown - no new plumbing needed.

I'd have thought that a far-fetched goal moments ago.

Replied to Peter Drake

@peterdrake @mkj @jitseniesen @apa

Well, I confirmed that the bizarro text at the top of the Y axis is not in fact part of the Y axis. If you set the style of the Y axis tick labels to plain, so it doesn't use scientific notation:

>>> plt.ticklabel_format(axis="y", style="plain")

... that one bizarro value is still shown in scientific format.

I don't recall if matplotlib supports multiple scales/sets of ticks on an axis, so I'm not sure where that value is coming from. I looked at the data generated by your code and didn't see anything weird.

I think you need either a matplotlib expert, or a user discussion group. Or at least someone who's used matplotlib more recently than the Clinton administration... 😉

#30DayChartChallenge Day1 Fractions - animal rescue incidents attended by the London fire brigade.

5 of 10 animals rescued are cats, but there are some interesting differences between boroughs - birds in Westminster, horse in Bexley, foxes in Hammersmith.

Made in #python #matplotlib using custom svg markers + #pyfonts to read in Google font.

Full code github.com/Lisa-Ho/small-data-

Seeking recommendations for a #WebMapping tutorial / course?

Slightly at sea on where to start.

- My current JS skill level is _extreme novice_.
- I don't have access to ArcGIS.
- Comfortable with #QGIS [*] and the #python #geospatial ecosystem (#geopandas #xarray #rasterio and plotting with #matplotlib)

Suggestions welcome. TIA. 👍

* I have looked at the qgis2web plugin, but having some issues associated with my aged laptop (2012 mbp running Ubuntu) and a 'Wayland session'.

Oh look, a rainbow! Exploring the Visible Spectrum with Python Part 1
In this article I write Python code to calculate the frequencies, wavelengths, energies and RGB values of light across the visible spectrum. (Next week in Part 2 I plot the data using Matplotlib.)
#python #pythonprogramming #physics #numpy #matplotlib #light #spectrum
codedrome.substack.com/p/visib

CodeDrome · Exploring the Visible Spectrum with Python Part 1By Chris Webb

Weekend viz. Marvel money tree showing box office sales by film and series.

Avengers are the most succesful series in in terms of box office sales with Avengers: End Game on top ($2,797m). Captain Marvel is the most succesful standalone film ($1,129m).

Data from Information is Beautiful (up until Jun 2023). Visual made 100% in #python #matplotlib.

Full code here (not pretty though 😁 ) github.com/Lisa-Ho/small-data-

"Plotando estatísticas básicas com #Polars e #Matplotlib - #NLP 04 " @dunossauro #Python

youtube.com/watch?v=4HpSFIekqD

Hoje eu aprendi uma ideia ótima do Dunossauro que é imaginar que o ax do fig, ax do matplotlib (axis/eixo) é como uma haste onde penduramos as coisas! Como é fundamental o trabalho dele pra nossa comunidade.

Update: inicialmente achei que era uma tradução corrente mas ele me explicou que não.

Network Graph Visualization: Improving Clarity in Dense Clusters with NetworkX
Improve Network Graph Visualization with NetworkX & Matplotlib! Learn simple yet effective strategies to enhance clarity, especially in dense clusters. Explore alternative layout algorithms & parameter adjustments for insightful data representation. #NetworkGraphVisualization #NetworkX #Matplotlib #DataVisualization #GraphTheory #Python
tech-champion.com/programming/