earthlab-education / ea-bug-queue

EA certificate students: submit minimum reproducible examples of your bugs/problems
0 stars 3 forks source link

Ridgeline Plot Troubles #3

Open rami8797 opened 2 years ago

rami8797 commented 2 years ago

For: (@eculler ) From: (@rami8797)

The Project

I'm trying to make a ridgeline plot using reflectance data from a NEON h5 file.

The Issue

I'm unable to make said plot.

eculler commented 2 years ago

@rami8797 I agree this plot should not take that long on your system! I'll see if I can figure out why.

eculler commented 2 years ago

@rami8797 I went through the code, and I actually think all those ways of making the plot are working (including joyplot with the modified syntax). It's just that the distributions are indeed very similar. Take a look at this plot (the kdes are colored by box - within the box each are very similar): image

and these ridgeline plots, again including wavelengths from all boxes:

image

image

image

image

image

image

I will upload my code so you can take a look at how I generated the plots, but I think the main issue here is that the amount of variation you have is pretty small.

rami8797 commented 2 years ago

@eculler thanks for taking a look at it! It's good to know it wasn't a coding problem! Looking at your code would be very helpful as well.

eculler commented 2 years ago

@rami8797 I thought I would get to cleaning it up sooner, so for now I uploaded commit f1aa99a which contains a *-response.ipynb file with my code. There's not a ton of explanation, so write back here if something doesn't make sense. There's examples of plotting, as well as some functions that help to use pandas in what I think is a cleaner way.