Skip to content

Scatterplot in Dataframe #8

Description

@lokeshh

I'm trying to draw scatter plot of the following dataframe but it misses some points.

df = Daru::DataFrame.new({
  x: [3, 3, 3],
  y: [1, 2, 3]
  }, index: [0, 2, 3])
Plot.new [df, pt: 6, ps: 1, using: '2:3']

Although if I do not specify any index then it works pretty well.

Activity

  1. lokeshh commented on Jun 23, 2016

    @lokeshh
    MemberAuthor

    BTW, I'm not sure what using option does? Could someone tell me or point in the direction where I can read about it. Thanks

  2. ievgrafov commented on Jun 25, 2016

    @ievgrafov
    Member

    You may take a look at the option description in Gnuplot doc (http://www.gnuplot.info/docs_5.0/gnuplot.pdf , p.91).

    In your case it tells Gnuplot to use 2-nd (as x) and 3-rd (as y) columns (1-st column is index, 2-nd is x and 3-rd is y for you datasheet) to plot you graph.

    Please attach graphs, you're getting as a result in both cases.

  3. lokeshh commented on Jun 26, 2016

    @lokeshh
    MemberAuthor

    Here's the image when I set a index different than default:
    wrong
    and here's the image when I use the default index:
    right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions