JuliaPy / PyPlot.jl

Plotting for Julia based on matplotlib.pyplot
https://github.com/JuliaPy/PyPlot.jl
MIT License
478 stars 88 forks source link

Error when `hatch` for `fill_between` is provided #333

Closed mschauer closed 6 years ago

mschauer commented 6 years ago

fill_between(ts, upper, lower, hatch="X") does not work. It gives AttributeError: 'PyCall.jlwrap' object has no attribute 'count'. But the argument hatch = is accepted. (Edit: Double quotes)

stevengj commented 6 years ago

Strings in Julia use double quotes

mschauer commented 6 years ago

~That is not the problem.~

I'll better check and reopen.

mschauer commented 6 years ago

I look into this. I had unsuccessfully tried both fill_between(ts, upper, lower, hatch="X") and fill_between(ts, upper, lower, hatch='X') and settled to report the wrong one (?fill_between uses Python strings which look like julica character constants). Anyway it turned out that this is a bug in Matplotlib or even higher upstream.