Commit 00b658c2 authored by Yan's avatar Yan
Browse files

Added minor ticks to the m/z axis.

parent 37381649
......@@ -28,7 +28,8 @@ def main():
# ds for data_set, ms for mass_spec_dataset, chrom for chrom_dataset
ds = dict(chrom_dat=None, masses=None, matrix=None)
ms = dict(x=[0], y=[0], line=None, annotation=[],
name="Spectrum", xlabel="m/z", ylabel="ion count")
name="Spectrum", xlabel="m/z", ylabel="ion count",
xtics=20)
chrom = dict(x=[0], y=[0], line=None, t_start=None, t_end=None,
name="Chromatogram", xlabel="time(min)",
ylabel="total ion count")
......
......@@ -184,6 +184,11 @@ def pop_plot(plot, plot_data):
plot.ticklabel_format(scilimits=(0, 0), axis='y')
if "annotation" in plot_data:
ann_spec(plot, plot_data)
if "xtics" in plot_data:
plot.locator_params(nbins=plot_data["xtics"], axis='x')
plot.minorticks_on()
plot.tick_params(axis='y', which='minor', left=False)
def populate(mpl_chromatogram, mpl_spectrum, data_set,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment