Skip to content

Commit 5678dd4

Browse files
Merge pull request #426 from ClojureCivitas/update-plotje
updating plotje dep
2 parents 696f752 + 4858ad4 commit 5678dd4

5 files changed

Lines changed: 22 additions & 10 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ _site/
3434
/target
3535
.calva/repl.calva-repl
3636
.calva/mcp-server/port
37+
.repl.calva-repl
3738
.portal/vs-code.edn
3839
**/password.edn
3940
/src/finance/portfolio_analysis/*.edn# Created by https://www.toptal.com/developers/gitignore/api/osx

deps.edn

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
:deps
44
{org.clojure/clojure {:mvn/version "1.12.3"}
5-
org.scicloj/noj {:mvn/version "2-beta18"}
5+
org.scicloj/noj {:mvn/version "2-beta24"}
66
org.scicloj/tablecloth.time {:mvn/version "1.00-alpha-6"}
77
;; Tableplot can be removed after updating Noj:
88
org.scicloj/tableplot {:mvn/version "1-beta14"}
9-
org.scicloj/plotje {:mvn/version "0.2.2"}
9+
org.scicloj/plotje {:mvn/version "0.10.1"}
1010
markdown-clj/markdown-clj {:mvn/version "1.12.4"}
1111
org.clojure/core.async {:mvn/version "1.9.808-alpha1"}
1212
io.github.clojure/core.async.flow-monitor {:git/tag "v0.1.2"
@@ -16,9 +16,9 @@
1616
metosin/malli {:mvn/version "0.19.1"}
1717
clj-fuzzy/clj-fuzzy {:mvn/version "0.4.1"}
1818
clj-thamil/clj-thamil {:mvn/version "0.2.0"}
19-
org.scicloj/clay {#_#_:mvn/version "2.0.16"
19+
org.scicloj/clay {#_#_:mvn/version "2.0.18"
2020
:git/url "https://github.com/scicloj/clay"
21-
:git/sha "606b3180bd15c88740786c6ab0902af26f248b0d"}
21+
:git/sha "77ff7caa2ab8d8de1cd09a1eee7e3509868cc60c"}
2222
org.scicloj/kindly {:mvn/version "4-beta23"}
2323
thi.ng/geom {:mvn/version "1.0.1"}
2424
org.eclipse.elk/org.eclipse.elk.core {:mvn/version "0.10.0"}
@@ -98,6 +98,7 @@
9898
:local-deps {:override-deps {org.scicloj/clay {:local/root "../clay"}
9999
org.scicloj/kindly {:local/root "../kindly"}
100100
org.scicloj/kindly-advice {:local/root "../kindly-advice"}
101-
org.scicloj/kindly-render {:local/root "../kindly-render"}}}
101+
org.scicloj/kindly-render {:local/root "../kindly-render"}
102+
org.scicloj/plotje {:local/root "../plotje"}}}
102103
:neil {:project {:name io.github.timothypratley/clojurecivitas}}
103104
:dev {:jvm-opts ["--add-opens=java.base/java.nio=ALL-UNNAMED"]}}}

site/styles.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,18 @@ figcaption {
3030
text-align: center;
3131
}
3232

33-
body.quarto-dark .js-plotly-plot,
34-
body.quarto-dark .mermaid {
33+
.plotje-plot, .js-plotly-plot {
34+
width: 100%;
35+
height: auto;
36+
}
37+
38+
body.quarto-dark .js-plotly-plot:not(.js-plotly-plot .js-plotly-plot),
39+
body.quarto-dark .plotje-plot:not(.plotje-plot .plotje-plot),
40+
body.quarto-dark .mermaid:not(.mermaid .mermaid) {
41+
filter: invert(100%) hue-rotate(180deg);
42+
}
43+
44+
body.quarto-dark .plotje-plot image {
3545
filter: invert(100%) hue-rotate(180deg);
3646
}
3747

src/civitas/authors.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
^:kind/hiccup ^:kindly/hide-code
4444
[:svg
45-
{:xlmns "http://www.w3.org/2000/svg"
45+
{:xmlns "http://www.w3.org/2000/svg"
4646
:viewBox "-30 -30 60 60"
4747
:width "100%"}
4848
[:defs

src/math/stats/quantquestions/what_are_the_odds/cheat_zine.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
{:temperature "90-104F" :days 0}
341341
{:temperature "105-119F" :days 0}
342342
{:temperature "120-134F" :days 0}]
343-
(pj/lay-value-bar :temperature :days)
343+
(pj/lay-bar :temperature :days)
344344
(pj/options {:title "Island A"}))
345345

346346
^:kindly/hide-code
@@ -351,7 +351,7 @@
351351
{:temperature "90-104F" :days 7}
352352
{:temperature "105-119F" :days 4}
353353
{:temperature "120-134F" :days 2}]
354-
(pj/lay-value-bar :temperature :days)
354+
(pj/lay-bar :temperature :days)
355355
(pj/options {:title "Island B"}))
356356
;; :::
357357

0 commit comments

Comments
 (0)