I have a Python geoprocessing tool that creates a chart from a click on our website. I'm trying to put our company's logo in the chart, but it's a little too big and it's blocking some of the X axis labels. I've tried physically resizing the .png in Windows and linking to the smaller version. No matter which one I use, it's displayed the same size in the chart. I haven't been able to find a clear solution online. Here is my code:
fig<SPAN class="punctuation token">,</SPAN> ax1 <SPAN class="operator token">=</SPAN> plt<SPAN class="punctuation token">.</SPAN>subplots<SPAN class="punctuation token">(</SPAN>figsize<SPAN class="operator token">=</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="number token">12</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="number token">8</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN>facecolor<SPAN class="operator token">=</SPAN><SPAN class="string token">'w'</SPAN><SPAN class="punctuation token">)</SPAN>
logo <SPAN class="operator token">=</SPAN> plt<SPAN class="punctuation token">.</SPAN>imread<SPAN class="punctuation token">(</SPAN>get_sample_data<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"our logo"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN>
axim <SPAN class="operator token">=</SPAN> fig<SPAN class="punctuation token">.</SPAN>add_axes<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="number token">0.01</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="number token">0.01</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="number token">0.2</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="number token">0.14</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">,</SPAN> anchor<SPAN class="operator token">=</SPAN><SPAN class="string token">'SW'</SPAN><SPAN class="punctuation token">)</SPAN>
axim<SPAN class="punctuation token">.</SPAN>imshow<SPAN class="punctuation token">(</SPAN>logo<SPAN class="punctuation token">,</SPAN> aspect<SPAN class="operator token">=</SPAN><SPAN class="string token">'auto'</SPAN><SPAN class="punctuation token">)</SPAN>
axim<SPAN class="punctuation token">.</SPAN>axis<SPAN class="punctuation token">(</SPAN><SPAN class="string token">'off'</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>