data-science

timrichardt 2024-04-30T13:26:05.333679Z

I recently was in need for the "new" matplotlib colormaps, and didn't want to leave clj, and ported them from python. Is there a clj colormap lib? I'd like to put this somewhere, I'm sure I will need them again.

🎨 1
Daniel Slutsky 2024-04-30T13:36:58.268879Z

Wonderful! https://github.com/Clojure2D/clojure2d By @tsulej

Daniel Slutsky 2024-04-30T13:38:02.563079Z

with the magnificent documentation of the color namespace https://clojure2d.github.io/clojure2d/docs/notebooks/notebooks/color.html

timrichardt 2024-04-30T13:39:56.624189Z

Ha, they are already there. Great. Thx @daslu @tsulej.

Daniel Slutsky 2024-04-30T13:43:46.032909Z

What you shared above looks great 💜

timrichardt 2024-04-30T13:45:24.353639Z

🌈 3
timrichardt 2024-04-30T13:45:32.787439Z

Number theory is so much fun with clojure.

timrichardt 2024-04-30T14:08:12.346429Z

https://github.com/Clojure2D/clojure2d?tab=readme-ov-file (sry, meant to link to the readme line)

timrichardt 2024-04-30T14:08:16.580929Z

Already there.

genmeblog 2024-04-30T14:11:29.044089Z

Yes. Btw. palettes are discrete, gradients are continuous so if you prefer continuous gradient go for (gradient :viridis/viridis) and use it as a function which accepts a number from 0.0 to 1.0 to get a color.