Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions changelog.org
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
* v0.7.1
- update datamancer dependency for the fix of ~arrange~ in
https://github.com/SciNim/Datamancer/pull/68 for issue
https://github.com/Vindaar/ggplotnim/issues/180
- make sure to set black font as default for TOML theme customization
- make ggplotnim compile with ~--styleCheck:error~ (PR
https://github.com/Vindaar/ggplotnim/pull/182 by @c-blake)
- add a ~{.booldefine.}~ variable to quiet ggplotnim when converting
integers to floats, ~const ggPlotDebugTypeInfer {.booldefine.} =
false~. Compile with ~-d:ggPlotDebugTypeInfer=true~ to enable the
info messages (old behavior) (PR
https://github.com/Vindaar/ggplotnim/pull/179 by @c-blake)
* v0.7.0
This release is a rather big one. The majority of features added
relates to customization of plots.
Expand Down
2 changes: 1 addition & 1 deletion ggplotnim.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ srcDir = "src"
requires "nim >= 1.0.0"
requires "https://github.com/Vindaar/seqmath >= 0.1.16"
requires "ginger == 0.6.1"
requires "datamancer >= 0.4.0"
requires "datamancer >= 0.4.6"
requires "arraymancer >= 0.7.22"
requires "shell >= 0.4.3"
requires "webview"
Expand Down
Binary file modified media/expected/rClassifiedGeomText.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/expected/rSimpleFacet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/expected/rTikZLandau.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/recipes/rClassifiedGeomText.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/recipes/rSimpleFacet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/recipes/rTikZLandau.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 14 additions & 14 deletions media/recipes/rTikZLandau.tex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

\draw [color = drawColor, fill = fillColor, draw opacity = 0.0, fill opacity = 1.0, line width = 0.0bp] (0.0000bp, 480.0000bp) rectangle (640.0000bp, 0.0000bp) ;
\node [right, font=\fontsize{16.0}{19.2}\selectfont
, anchor=west] at (70.8661bp, 463.5125bp){Approximation of Landau distribution: $p(x) \approx \frac{1}{\sqrt{2π}} \exp\left(- \frac{x + e^{-x}}{2} \right)$} ;
, anchor=west] at (70.8661bp, 464.5161bp){Approximation of Landau distribution: $p(x) \approx \frac{1}{\sqrt{2π}} \exp\left(- \frac{x + e^{-x}}{2} \right)$} ;
\definecolor{drawColor}{rgb}{0.0, 0.0, 0.0}
\definecolor{fillColor}{rgb}{0.9200000166893005, 0.9200000166893005, 0.9200000166893005}

Expand All @@ -37,37 +37,37 @@
\draw [color = drawColor, fill = fillColor, draw opacity = 1.0, fill opacity = 0.0, line width = 1.0bp] (464.1661bp, 51.6929bp)--(464.1661bp, 56.6929bp) ;
\draw [color = drawColor, fill = fillColor, draw opacity = 1.0, fill opacity = 0.0, line width = 1.0bp] (587.0723bp, 51.6929bp)--(587.0723bp, 56.6929bp) ;
\node [font=\fontsize{8.0}{9.6}\selectfont
] at (95.4474bp, 46.3613bp){-5} ;
] at (95.4474bp, 46.1254bp){-5} ;
\node [font=\fontsize{8.0}{9.6}\selectfont
] at (218.3536bp, 46.3319bp){0} ;
] at (218.3536bp, 46.0853bp){0} ;
\node [font=\fontsize{8.0}{9.6}\selectfont
] at (341.2598bp, 46.3613bp){5} ;
] at (341.2598bp, 46.1254bp){5} ;
\node [font=\fontsize{8.0}{9.6}\selectfont
] at (464.1661bp, 46.3319bp){10} ;
] at (464.1661bp, 46.0853bp){10} ;
\node [font=\fontsize{8.0}{9.6}\selectfont
] at (587.0723bp, 46.3535bp){15} ;
] at (587.0723bp, 46.0893bp){15} ;
\draw [color = drawColor, fill = fillColor, draw opacity = 1.0, fill opacity = 0.0, line width = 1.0bp] (70.8661bp, 56.6929bp)--(65.8661bp, 56.6929bp) ;
\draw [color = drawColor, fill = fillColor, draw opacity = 1.0, fill opacity = 0.0, line width = 1.0bp] (70.8661bp, 135.6850bp)--(65.8661bp, 135.6850bp) ;
\draw [color = drawColor, fill = fillColor, draw opacity = 1.0, fill opacity = 0.0, line width = 1.0bp] (70.8661bp, 214.6772bp)--(65.8661bp, 214.6772bp) ;
\draw [color = drawColor, fill = fillColor, draw opacity = 1.0, fill opacity = 0.0, line width = 1.0bp] (70.8661bp, 293.6693bp)--(65.8661bp, 293.6693bp) ;
\draw [color = drawColor, fill = fillColor, draw opacity = 1.0, fill opacity = 0.0, line width = 1.0bp] (70.8661bp, 372.6614bp)--(65.8661bp, 372.6614bp) ;
\draw [color = drawColor, fill = fillColor, draw opacity = 1.0, fill opacity = 0.0, line width = 1.0bp] (70.8661bp, 451.6535bp)--(65.8661bp, 451.6535bp) ;
\node [left, font=\fontsize{8.0}{9.6}\selectfont
, anchor=east] at (63.1381bp, 56.6929bp){0} ;
, anchor=east] at (62.8803bp, 56.6929bp){0} ;
\node [left, font=\fontsize{8.0}{9.6}\selectfont
, anchor=east] at (63.1381bp, 135.6850bp){0.05} ;
, anchor=east] at (62.8803bp, 135.6850bp){0.05} ;
\node [left, font=\fontsize{8.0}{9.6}\selectfont
, anchor=east] at (63.1381bp, 214.6772bp){0.1} ;
, anchor=east] at (62.8803bp, 214.6772bp){0.1} ;
\node [left, font=\fontsize{8.0}{9.6}\selectfont
, anchor=east] at (63.1381bp, 293.6693bp){0.15} ;
, anchor=east] at (62.8803bp, 293.6693bp){0.15} ;
\node [left, font=\fontsize{8.0}{9.6}\selectfont
, anchor=east] at (63.1381bp, 372.6614bp){0.2} ;
, anchor=east] at (62.8803bp, 372.6614bp){0.2} ;
\node [left, font=\fontsize{8.0}{9.6}\selectfont
, anchor=east] at (63.1381bp, 451.6535bp){0.25} ;
, anchor=east] at (62.8803bp, 451.6535bp){0.25} ;
\node [font=\fontsize{12.0}{14.4}\selectfont
] at (341.2598bp, 26.2053bp){x} ;
] at (341.2598bp, 26.2708bp){x} ;
\node [rotate = 90.0, font=\fontsize{12.0}{14.4}\selectfont
] at (33.9522bp, 254.1732bp){y} ;
] at (34.2970bp, 254.1732bp){y} ;
\definecolor{drawColor}{rgb}{1.0, 1.0, 1.0}
\definecolor{fillColor}{rgb}{0.0, 0.0, 0.0}

Expand Down
2 changes: 1 addition & 1 deletion resources/expected/rClassifiedGeomText.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/expected/rSimpleFacet.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/ggplotnim/theme_toml.nim
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ proc parseFont(fnt: string): Font =
if not fnt.startsWith("font("):
raise newException(ValueError, "Invalid font description in the TOML file. Field is " &
fnt & ", but should be of type `font(<args>)`.")
result.color = toOptColor("black").get
let args = fnt.dup(removePrefix("font(")).dup(removeSuffix(")")).split(",")
var argIdx = 0
for arg in args:
Expand Down
Loading