@@ -51,21 +51,26 @@ class PourbaixDiagramComponent(MPComponent):
5151
5252 default_plot_style = frozendict (
5353 xaxis = {
54- "title" : "pH" ,
54+ "title" : {
55+ "text" : "pH" ,
56+ "font" : {"color" : "#000000" , "size" : 24.0 },
57+ },
5558 "anchor" : "y" ,
5659 "mirror" : "ticks" ,
5760 "showgrid" : False ,
5861 "showline" : True ,
5962 "side" : "bottom" ,
6063 "tickfont" : {"size" : 16.0 },
6164 "ticks" : "inside" ,
62- "titlefont" : {"color" : "#000000" , "size" : 24.0 },
6365 "type" : "linear" ,
6466 "zeroline" : False ,
6567 "range" : [MIN_PH , MAX_PH ],
6668 },
6769 yaxis = {
68- "title" : "Applied Potential (V vs. SHE)" ,
70+ "title" : {
71+ "text" : "Applied Potential (V vs. SHE)" ,
72+ "font" : {"color" : "#000000" , "size" : 24.0 },
73+ },
6974 "anchor" : "x" ,
7075 "mirror" : "ticks" ,
7176 "range" : [MIN_V , MAX_V ],
@@ -74,7 +79,6 @@ class PourbaixDiagramComponent(MPComponent):
7479 "side" : "left" ,
7580 "tickfont" : {"size" : 16.0 },
7681 "ticks" : "inside" ,
77- "titlefont" : {"color" : "#000000" , "size" : 24.0 },
7882 "type" : "linear" ,
7983 "zeroline" : False ,
8084 },
@@ -343,8 +347,10 @@ def get_figure(
343347 x = list (ph_range ),
344348 y = list (v_range ),
345349 colorbar = {
346- "title" : "∆G<sub>pbx</sub> (eV/atom)" ,
347- "titleside" : "right" ,
350+ "title" : {
351+ "text" : "∆G<sub>pbx</sub> (eV/atom)" ,
352+ "side" : "right" ,
353+ },
348354 },
349355 colorscale = [
350356 [0 , "#000004" ],
@@ -896,12 +902,8 @@ def make_figure(
896902 filter_solids = kwargs ["filter_solids" ],
897903 )
898904
899- self .logger .debug ( # noqa: PLE1205
900- "Generated pourbaix diagram" ,
901- len (pourbaix_entries ),
902- heatmap_entry ,
903- conc_dict ,
904- comp_dict ,
905+ self .logger .debug (
906+ f"Generated pourbaix diagram with { len (pourbaix_entries )} entries."
905907 )
906908
907909 figure = self .get_figure (
0 commit comments