Python matplotlib manipulating to use it in the plot title
Python matplotlib manipulating to use it in the plot title assume I've the following variable roundi = theta_result_lasso.round(2) [ 0. -2.36] where theta_result_lasso.round are just two values. The line for my plot title is ax.set_title(r'Globales Minimum $hat beta$ = {}'.format(roundi), fontsize=20) producing this: is there a way to replace the "." after the zero by a "," and descreasing the disance between the two values as it should look like a "vector" ? It should look like this: [0, -2.36] If you Need further informations, I'll provide an example what is type(roundi) ? – jedwards Jul 1 at 22:16 type(roundi) class 'numpy.ndarray' – Leo96 Jul 1 at 22:18 ...