Skip to content

Commit 1bed525

Browse files
authored
[v2] Support for colors and opacity in mesh3d in pgfplotsx (#5216)
* Enable color and opacity in mesh3d in pgfplotsx backend * Add entry to zendo
1 parent a58d0ff commit 1bed525

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.zenodo.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,11 @@
810810
"orcid": "0009-0003-6525-7413",
811811
"type": "Other"
812812
},
813+
{
814+
"name": "Daniel Arnström",
815+
"orcid": "0000-0003-0970-0620",
816+
"type": "Other"
817+
},
813818
{
814819
"affiliation": "@JuliaComputing",
815820
"name": "Παναγιώτης Γεωργακόπουλος",

PlotsBase/ext/PGFPlotsXExt.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,10 @@ function pgfx_add_series!(::Val{:mesh3d}, axis, series_opt, series, series_func,
738738
"patch" => nothing,
739739
"table/row sep" => "\\\\",
740740
"patch table" => join(ptable, "\n "),
741+
"fill" => opt[:fillcolor],
742+
"faceted color" => opt[:linecolor],
743+
"opacity" => something(get_fillalpha(series), 1.0),
744+
"draw opacity" => something(get_linealpha(series), 1.0),
741745
)
742746
return pgfx_add_series!(axis, series_opt, series, series_func, opt)
743747
end

0 commit comments

Comments
 (0)