diff --git a/docs/examples/shading/plot_martinez_shade_loss.py b/docs/examples/shading/plot_martinez_shade_loss.py index 625be33bc8..10ce77f741 100644 --- a/docs/examples/shading/plot_martinez_shade_loss.py +++ b/docs/examples/shading/plot_martinez_shade_loss.py @@ -47,7 +47,7 @@ import pandas as pd import numpy as np import matplotlib.pyplot as plt -from matplotlib.dates import ConciseDateFormatter +from matplotlib.dates import DateFormatter pitch = 4 # meters width = 1.5 # meters @@ -235,10 +235,6 @@ ax1.plot(times, shade_losses, label=k, linestyle=linestyle) ax1.legend(loc="upper center") ax1.grid() -ax1.set_xlabel("Time") -ax1.xaxis.set_major_formatter( - ConciseDateFormatter("%H:%M", tz="Europe/Madrid") -) ax1.set_ylabel(r"$P_{out}$ losses") ax1.set_title("Per module") @@ -248,9 +244,7 @@ ax2.legend(loc="upper center") ax2.grid() ax2.set_xlabel("Time") -ax2.xaxis.set_major_formatter( - ConciseDateFormatter("%H:%M", tz="Europe/Madrid") -) +ax2.xaxis.set_major_formatter(DateFormatter("%H:%M", tz="Europe/Madrid")) ax2.set_ylabel(r"$P_{out}$ losses") ax2.set_title("Per row") fig.tight_layout() diff --git a/docs/sphinx/source/conf.py b/docs/sphinx/source/conf.py index 157e77074a..a08507c0b3 100644 --- a/docs/sphinx/source/conf.py +++ b/docs/sphinx/source/conf.py @@ -73,7 +73,9 @@ # Enable hover tooltips hoverxref_auto_ref = True -hoverxref_roles = ["class", "meth", "func", "ref", "term"] +hoverxref_roles = [ + "class", "meth", "func", "ref", "term", "obj", "mod", "data" +] hoverxref_role_types = dict.fromkeys(hoverxref_roles, "tooltip") hoverxref_domains = ["py"] hoverxref_intersphinx = list(intersphinx_mapping.keys())