Skip to content

Commit

Permalink
Add static version check
Browse files Browse the repository at this point in the history
  • Loading branch information
henry2004y committed Aug 29, 2021
1 parent 5b6e8bf commit cb6b436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plot/pyplot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export plotdata, plotlogdata, plot, scatter, contour, contourf, plot_surface,

include("utility.jl")

if matplotlib.__version__ >= "3.3"
@static if matplotlib.__version__ >= "3.3"
matplotlib.rc("image", cmap="turbo") # set default colormap
end

Expand Down

0 comments on commit cb6b436

Please sign in to comment.