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 and vladdez committed Nov 14, 2023
1 parent e4a6bf4 commit 6a0bd28
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 6a0bd28

Please sign in to comment.