Skip to content
Snippets Groups Projects

plot legends for subplots properly

Merged Karim Ahmed requested to merge fix/plot_error_band_AGIPD_FF into master
All threads resolved!

Fixing plotting subplots by removing duplication for subplot definition and using axes for creating legends

Description

This is a fix for the plots of function plot_error_band for AGIPD's FF notebook.

Image with plotting Warning and bug.

Screenshot_from_2021-08-30_21-41-35

How Has This Been Tested?

xfel-calibrate AGIPD FF \
--in-folder /gpfs/exfel/exp/SPB/202031/p900146/proc/proc_vtst/p900215/FF/HISTS/64cells1.1MHz_gs0_12clk/r96/ \
--out-folder /gpfs/exfel/data/scratch/ahmedk/test/FF_plot \
--proc-folder /gpfs/exfel/exp/SPB/202131/p900215/proc/ \
--raw-folder /gpfs/exfel/exp/SPB/202131/p900215/raw/ \
--karabo-id-control SPB_IRU_AGIPD1M1 --karabo-id SPB_DET_AGIPD1M-1 \
--modules 0-16 --cell-range 0 64 --acq-rate 1.1 --gain-setting 0 \
--run 96 --peak-range -30 20 30 80 80 150 135 200 \
--peak-width-range 0 20 0 35 0 35 0 40 --peak-lim -20 20 \
--d0-lim 35 80 --peak-width-lim 0.5 2.0 0.5 2.0 --chi2-lim 0 4 \
--gain-lim 0.6 1.4 --pixel-range 0 0 512 128 --fit-range -40 160 \
--n-peaks-fit 3 --sigma-limit 1.5 --slurm-name TestFFSPB \
--slurm-mem 750

Relevant Documents (optional)

Report after the fix: GainCharacterization_1_.pdf

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

Reviewers

@danilevc @jsztuk

Edited by Karim Ahmed

Merge request reports

Checking pipeline status.

Merged by Karim AhmedKarim Ahmed 3 years ago (Sep 3, 2021 2:36pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Karim Ahmed added 1 commit

    added 1 commit

    • c4d8813b - separate between API and pyplot

    Compare with previous version

  • Karim Ahmed added 1 commit

    added 1 commit

    • df8ca7d8 - use OO matplotlib instead of APU

    Compare with previous version

  • Karim Ahmed resolved all threads

    resolved all threads

  • Is this ok to merge?

  • Karim Ahmed added 1 commit

    added 1 commit

    • 37798857 - use OO matplotlib instead of APU

    Compare with previous version

  • Thank you for the changes from my side, LGTM

  • Thank you a lot for the nice review.

  • Karim Ahmed mentioned in commit 7e4e9250

    mentioned in commit 7e4e9250

  • merged

  • Philipp Schmidt changed milestone to %3.4.2

    changed milestone to %3.4.2

  • Please register or sign in to reply
    Loading