-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missings #136
Comments
Great idea! We'd welcome a PR. |
There are a few design questions. I guess the two main options are to
(It would also be possible to pass the
(2) is a much smaller change, but drops some useful information from the resulting |
@tawheeler Do you have a preference? |
Julia now has core support for missing values. It seems to make sense to support that directly in PGFPlots.jl as well. PGFPlots.jl is a weird package in that, rather than typing things, we basically don't add types to anything, and rely on the type itself to dictate how it gets serialized to text when writing to a .tex file. |
Sounds good @tawheeler |
OK great! I'll have a go at the PR. |
Currently, plot functions accept data with type
AbstractMatrix{Real}
. This means that the code throws aMethodError
when passed data that allows for or includesmissing
values.When plotting multiple time series with different frequencies / time spans, there can be quite a bit of messy wrangling required before passing the data through to the plotting functions in PGFPlots.
If it were possible to accept data as
AbstractMatrix{Union{Missing,Real}}
, then for PGFPlots to drop the Missings for each trace before plotting, that would be much appreciated.The text was updated successfully, but these errors were encountered: