Skip to content

Commit

Permalink
Update plot_topoplot.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
behinger authored Nov 14, 2023
1 parent 407d129 commit 7534a62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plot_topoplot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ function plot_topoplot!(

clims = (min(plotData...), max(plotData...))
if clims[1] clims[2]
@warn """automatic colorlimits are the same, maybe all data is identical? Deactivating colorbar.
note: this might lead to an error later about interpolation when actually plotting the topoplot"""
@warn """The min and max of the value represented by the color are the same, it seems that the data values are identical.
We disable the color bar in this figure.
Note: The identical min and max may cause an interpolation error when plotting the topoplot."""
config_kwargs!(config, layout = (; useColorbar=false,showLegend=false))
else
config_kwargs!(config, colorbar = (; limits = clims))
Expand Down

0 comments on commit 7534a62

Please sign in to comment.