Skip to content
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

Scatterplot in Dataframe #8

Open
lokeshh opened this issue Jun 23, 2016 · 3 comments
Open

Scatterplot in Dataframe #8

lokeshh opened this issue Jun 23, 2016 · 3 comments

Comments

@lokeshh
Copy link
Member

lokeshh commented Jun 23, 2016

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.

@lokeshh
Copy link
Member Author

lokeshh commented Jun 23, 2016

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

@lokeshh lokeshh closed this as completed Jun 23, 2016
@lokeshh lokeshh reopened this Jun 23, 2016
@ievgrafov
Copy link
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.

@lokeshh
Copy link
Member Author

lokeshh commented Jun 26, 2016

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants