Log tendency in seaborn or matplotlib [duplicate] - python

This question already has answers here:
Log log plot linear regression
(3 answers)
Log-log lmplot with seaborn
(3 answers)
Closed 11 months ago.
I have the next graph. As you notice, there are two graphs in log-log axex. How could I add a tendency line on the purple one (WOR*)?.
The code for this graph is:
axesA2[2].plot(Alm2['mes'],Alm2['WOR'],color='green')
axesA2[2].plot(Alm2['mes'],Alm2['DerivWOR'],color='purple')
axesA2[2].legend();
axesA2[2].set_title('Time vs WOR - WOR*');
axesA2[2].set_xscale('log')
axesA2[2].set_yscale('log')
axesA2[2].set_xlabel("mes");
axesA2[2].set_ylabel("WOR-WOR*");
axesA2[2].grid(True);
By the way, the legend is not showing, but I can handle with that later.
Thanks in advance.

Related

How do I plot a graph to show the correlation between the males and females using python and matplotlib? [duplicate]

This question already has answers here:
Plot bar graph from Pandas DataFrame
(2 answers)
A convenient way to plot bar-plot in Python pandas
(1 answer)
Closed 3 months ago.
How do i plot the graph using the dataframe i got?
like that
I tried plotting directly and got this instead

Difference between matplotlib.pyplot.xlabel() and .set_xlabel() in python using matplotlib? [duplicate]

This question already has answers here:
Matplotlib plt.xlabel() vs ax.set_xlabel()
(1 answer)
matplotlib Axes.plot() vs pyplot.plot()
(5 answers)
What is the difference between drawing plots using plot, axes or figure in matplotlib?
(2 answers)
Closed last year.
When setting parameters for a table using matplotlib, what is the difference between these two naming functions. I initially thought plt.xlabel was used for functional naming and .set_xlabel was used for object oriented naming but Im now confused

short vertical line on axis (matplotlib) [duplicate]

This question already has answers here:
matplotlib ticks thickness
(3 answers)
Closed 3 years ago.
What's the name of this line (in yellow circle of below picture), and how do I change its line width?
What you want is called ticklines. You can find it in this documentation page for details.

How to indicate p-value in Seaborn density plot? [duplicate]

This question already has answers here:
How to draw vertical lines on a given plot
(6 answers)
Color the shaded area under the curve distribution plot different colors
(2 answers)
Closed 5 years ago.
Density Plot from ggplot in r with p-value indicator
I want to make a report with a density plot with a line indicating the p value (or any other arbitrary value), something similar to the image shown above.
However I haven't been able to find a way to do this in Python/Seaborn.
Thanks!

pandas: plot part of a Series in a different color [duplicate]

This question already has answers here:
Can I make a multi-color line in matplotlib?
(3 answers)
How to plot one line in different colors
(5 answers)
Closed 5 years ago.
I'm trying to plot a pandas Series, with part of the Series in a different color. Something like this, but I only have two colors:
I have a second binary Series that contains 0's and 1's to indicate which points should be colored differently. How could I go about this?

Categories