Replies: 1 comment
-
|
I don't think it is possible to use a Plain and nested lists work ... import seaborn as sns
list_temp = [1, 2, 4, 8, 16, 32]
list_press = [1, 3, 9, 27, 81, 243]
hourly_reading = [list_temp, list_press]
sns.lineplot(list_temp)
sns.lineplot(data=hourly_reading)... however you lose the series names. In the legend they will appear as generic index numbers (0, 1, 2 ...) Dictionaries work better: met_dict = {"Temperatures": list_temp, "Pressures": list_press}
sns.lineplot(met_dict) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
say I create a dataclass for recording some data...
I create a list of my dataclass instances and regularly add data to it ...
Can I use my list as direct input to sns.lineplot to plot for instance, a graph of temperature values?
Beta Was this translation helpful? Give feedback.
All reactions