Here I'm making a scatterplot that contains data from 3 columns out of my dataframe. The columns are the different samples and row names are genes (thus the same for each col). I would like my y-axis to be log-transformed. However the standard way to use yscale('log') does not work. Some how it limits the y-axis, without making it logarithmic and data gets lost.
This is before:
ax = mini_df.plot(kind="scatter", x="gene",y="sample_02A", color="b", label="sample 02A")
mini_df.plot(kind="scatter", x="gene",y="sample_04A", color="g", label="sample 04A", ax=ax)
mini_df.plot(kind="scatter", x="gene",y="sample_06A", color="r", label="sample 06A", ax=ax)
mini_df.plot(kind="scatter", x="gene",y="sample_08A", color="purple", label="sample 08A", ax=ax)
ax.set_xlabel("gene")
ax.set_ylabel("expression value")
plt.show()

This is after logarithmic transformation
ax = mini_df.plot(kind="scatter", x="gene",y="sample_02A", color="b", label="sample 02A")
mini_df.plot(kind="scatter", x="gene",y="sample_04A", color="g", label="sample 04A", ax=ax)
mini_df.plot(kind="scatter", x="gene",y="sample_06A", color="r", label="sample 06A", ax=ax)
mini_df.plot(kind="scatter", x="gene",y="sample_08A", color="purple", label="sample 08A", ax=ax)
ax.set_xlabel("gene")
ax.set_ylabel("expression value")
ax.set_yscale('log')
plt.show()

DataFrame.plot()? pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.html