-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scale issue in matplotlib 2.2 #289
Comments
The following script: import FlowCal
d = FlowCal.io.FCSData('Data002.fcs')
d = FlowCal.transform.to_rfi(d)
for scale in ['linear', 'log', 'logicle']:
# hist1d
FlowCal.plot.hist1d(d,
channel='FL1',
xscale=scale,
savefig='hist_{}.png'.format(scale))
# density2d
FlowCal.plot.density2d(d,
mode='scatter',
channels=['FSC', 'SSC'],
xscale=scale,
yscale=scale,
savefig='density2d_{}.png'.format(scale))
# scatter
FlowCal.plot.scatter2d(d,
channels=['FL1', 'FL3'],
xscale=scale,
yscale=scale,
savefig='scatter2d_{}.png'.format(scale)) Run against this file fails with matplotlib 2.2.2, on current branch |
Commit 1aae4d6 fixes this issue. The script above can run without issues even with matplotlib 2.2.2, and the resulting images are as expected. I'll submit a PR. |
Plotting in log scale does not work in matplotlib 2.2. The following statement:
Causes the following error
The following line:
Is called to set the axis scale, and additional arguments are passed to the underlying Scale object.
data
andchannel
were necessary for logicle to work properly, and it seems that objects related to the logarithmic scals just ignored them. But now it's not ignoring them and crashing instead.EDIT: Linear scale works, but following the logic here it may not work in the future.
The text was updated successfully, but these errors were encountered: