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

Data extraction from csv file #223

Closed
NaserHUB opened this issue Oct 25, 2023 · 7 comments
Closed

Data extraction from csv file #223

NaserHUB opened this issue Oct 25, 2023 · 7 comments

Comments

@NaserHUB
Copy link

Trying to plot data extracted from a csv file but faced with an error:
image
image
image

image
image

help plz

@longemen3000
Copy link
Member

The error seems in the plots, not in the library itself

@NaserHUB
Copy link
Author

So what can be done in this case?

@longemen3000
Copy link
Member

Can you do plot(T, H2OCpmodels[1])?

@pw0908
Copy link
Member

pw0908 commented Oct 26, 2023

Hi Naser,

Could you try CSV.read("D2O_H2O_graphs.csv",Dataframe) instead? That might return a dataframe that is easier to work with.

@NaserHUB
Copy link
Author

Hi Pierre, thanks for that I dont get any CSV errors anymore. I do however now face 'plots not defined' issue:
image

I have tried shutting down the kernel on Jupyter, restarting the file as well as reuploading Pyplot and Plots packages. I also tried removing Pyplot and only using Plots with no prevail.

@pw0908
Copy link
Member

pw0908 commented Oct 30, 2023

Hi Naser,

Have you tried restarting the notebook and only loading either PyPlot or Plots?

If you use PyPlot in the above, you should precede plot() with plt.plot().

@NaserHUB
Copy link
Author

all works now, thank you very much!

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

3 participants