We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is not a problem with rdatasets.
Rather, it is a problem with format_xyzc method.
format_xyzc
GR.rb/lib/gr/plot.rb
Line 1369 in 3657a03
When you pass 2d ruby array as Z to methods like contour contourf, it will not work as expected.
contour
contourf
contourf(Z) # z is 2d ruby array or 2d numo array. contourf(X,Y,Z) # x, y, z are 1d ruby array or 1d numo array.
This issue is complicated because sometimes these methods get multiple series.
contourf([Z,Z,Z]) contourf([[X,Y,Z],[X,Y,Z],[X,Y,Z]])
It is impossible to distinguish contourf([[X,Y,Z],[X,Y,Z],[X,Y,Z]]) from contourf(Z). Maybe I have to reconsider APIs...
contourf([[X,Y,Z],[X,Y,Z],[X,Y,Z]])
contourf(Z)
The text was updated successfully, but these errors were encountered:
To better understand the problem, I need to list the types of arguments for each function...
Sorry, something went wrong.
To better understand this problem, we need to break Example down into smaller pieces and make it more like a unit test.
No branches or pull requests
This is not a problem with rdatasets.
Rather, it is a problem with
format_xyzc
method.GR.rb/lib/gr/plot.rb
Line 1369 in 3657a03
When you pass 2d ruby array as Z to methods like
contour
contourf
, it will not work as expected.This issue is complicated because sometimes these methods get multiple series.
It is impossible to distinguish
contourf([[X,Y,Z],[X,Y,Z],[X,Y,Z]])
fromcontourf(Z)
.Maybe I have to reconsider APIs...
The text was updated successfully, but these errors were encountered: