1

I would like each fluid to have a different color and then be able to pass the matrix to png

Dataframe full of strings

f, ax = plt.subplots(figsize=(20, 5))
sns.heatmap(fluidos_frame, annot=True, linewidths=.5, 
ax=ax,cmap = 'viridis')


plt.xlabel('Th[K]')
plt.ylabel('m[kg/s]')
plt.savefig(path + 'Matrix_r124_MW.png')

ValueError: could not convert string to float: 'R134a'

  • 2
    Welcome to SO! What have you tried so far? We're much more here to help with specific questions of the form "I tried X, but it did not do what I expect and instead resulted in an error!" accompanied by a [Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve) – ti7 Jan 27 '22 at 16:58
  • i tried with seaborn heatmat but giveme a error with the strings – Dan Seavern Jan 27 '22 at 17:00
  • 3
    Please edit your question and post your best coding attempt, the input data as text (don't post data/code/error messages as images), and the full traceback of your error message. – Mr. T Jan 27 '22 at 17:03

0 Answers0