Skip to content

Commit e6a6cd3

Browse files
authored
Handle colors for mesh3d in pgfplotsx backend (#5214)
* Handle colors for mesh3d in pgfplotsx backend * Add name to zenodo * Separate line and fill color. Also add opacity
1 parent 2127a0d commit e6a6cd3

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
@@ -792,6 +792,11 @@
792792
"orcid": "0009-0003-6525-7413",
793793
"type": "Other"
794794
},
795+
{
796+
"name": "Daniel Arnström",
797+
"orcid": "0000-0003-0970-0620",
798+
"type": "Other"
799+
},
795800
{
796801
"affiliation": "@JuliaComputing",
797802
"name": "Παναγιώτης Γεωργακόπουλος",

src/backends/pgfplotsx.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,10 @@ function pgfx_add_series!(::Val{:mesh3d}, axis, series_opt, series, series_func,
538538
"patch" => nothing,
539539
"table/row sep" => "\\\\",
540540
"patch table" => join(ptable, "\n "),
541+
"fill" => opt[:fillcolor],
542+
"faceted color" => opt[:linecolor],
543+
"opacity" => something(get_fillalpha(series), 1.0),
544+
"draw opacity" => something(get_linealpha(series), 1.0),
541545
)
542546
return pgfx_add_series!(axis, series_opt, series, series_func, opt)
543547
end

0 commit comments

Comments
 (0)