JuliaStats / TimeSeries.jl

Time series toolkit for Julia
Other
353 stars 69 forks source link

Plotting: labels as strings #407

Closed greimel closed 5 years ago

greimel commented 5 years ago

This is a workaround for a bug in Plots.pgfplots() which prevents labels::Symbol to be shown.

see JuliaPlots/Plots.jl#2020

codecov-io commented 5 years ago

Codecov Report

Merging #407 into master will not change coverage. The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #407   +/-   ##
=======================================
  Coverage   70.18%   70.18%           
=======================================
  Files          10       10           
  Lines         550      550           
=======================================
  Hits          386      386           
  Misses        164      164
Impacted Files Coverage Δ
src/plotrecipes.jl 0% <0%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5cfe95d...56603e4. Read the comment docs.

greimel commented 5 years ago
using Dates, TimeSeries
# dummy data
dates = Date(2018, 1, 1):Day(1):Date(2018, 12, 31)
ta = TimeArray(dates, rand(length(dates)))

using Plots
gr()
plot(ta)
savefig("test-gr.png")
pgfplots()
plot(ta)
savefig("test-pgf-before.png")

before: test-pgf-before

after: test-pgf

cf gr(): test-gr