Oct-05-2020, 04:40 PM
Hello all
I have a strange problem when making sub plots.
I have 15 x sub plots in a figure, however all but 1 of the sub plots does not have a 0 on the Y axis as shown in the attachment.
Not sure why that is?
The code i have for that subplot is as follows:-
I want to place a gridline at 0 (hence the question above) but i want that grid line to be Green and all the other grid lines to be the default grey color.
I thought about using axhline command??
Can you help?
Thank you.
I have a strange problem when making sub plots.
I have 15 x sub plots in a figure, however all but 1 of the sub plots does not have a 0 on the Y axis as shown in the attachment.
Not sure why that is?
The code i have for that subplot is as follows:-
axes[5].plot((df_raw_data.iloc[start_counter:end_counter,5]),(df_raw_data.iloc[start_counter:end_counter,13]), linewidth = line_weight) axes[5].set_ylabel("Soil Mostiure", fontsize=5, weight="bold") axes[5].set_yticks(range(-15, 16, 10))Also if i wanted to make the only make a single horizontal grid line a different color then how can i achieve this?
I want to place a gridline at 0 (hence the question above) but i want that grid line to be Green and all the other grid lines to be the default grey color.
I thought about using axhline command??
Can you help?
Thank you.