Skip to content

Problems with arguments - Rdatasets example not work well.  #27

Description

@kojix2

This is not a problem with rdatasets.

Rather, it is a problem with format_xyzc method.

def format_xyzc(*args)

When you pass 2d ruby array as Z to methods like contour contourf, it will not work as expected.

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions