Closed clintonTE closed 2 years ago
This is a consequence of PGFPlotsX dumping the whole Dataframe within Table
--- it does not form a subset based on x
and y
. While this is fixed, you can use
Table(measure.data, measure.percentrat)
as a workaround.
(The culprit is this line, I will make a PR fixing it).
Not part of the issue, but this package makes the figures for my thesis look amazing. Really a cut above anything else I have tried.
Sorry for the long delay. I am not entirely sure that this is an issue with PGFPlotsX. In particular, you don't have unused columns in your data, you have columns which themselves contain Dict
s:
julia> first(measure)
DataFrameRow
Row │ date obj percentrat
│ Date Dict… Float64
─────┼──────────────────────────────────────────────────────────
1 │ 2010-01-31 Dict(:a=>0.187707, :b=>0.429964) 0.404749
PGFPlotsX does not know how to deal with this, so it just gives an error.
We could check input early (for strings, numbers, missing
, etc) but I feel that would go against the design of this package: after all, a user could define a method for print_tex
for whatever type they want and have it work fine.
I'll note that this issue manifests in a number of different ways, including different error messages and silent corruption. The error only occurs when the offending column is before the last column used in the figure.
Output: