Displaying correct units in plots
Dear Nomad,
I have a plottable quanitity:
current_density = Quantity(
type=np.dtype(np.float64),
shape=['n_values'],
unit='mA/cm^2',
description='Current density array of the *JV* curve.',
a_plot={
'x': 'voltage', 'y': 'current_density'
})
The unit is mA/cm^2
in the plot then it is viewed as A/angstrom^2
Is this intended, how can I display the unit the scientists work with?
Further, if I look at the voltage data:
voltage = Quantity(
type=np.dtype(np.float64),
shape=['n_values'],
unit='V',
description='Voltage array of the of the *JV* curve.',
a_plot={
'x': 'voltage', 'y': 'current_density'
})
It displays in the plot the wrong y axis name:
Best Micha