@@ -117,7 +117,7 @@ dh.save_figures(filepath="nv_pl_scan", fig=fig, only_jpg=True)
117117### Example 1: Nanonis AFM measurements
118118
119119``` python
120- afm_measurements = dh.load_measurements(measurement_str = " Scan" , extension = " .sxm" )
120+ afm_measurements = dh.load_measurements(measurement_str = " Scan" , extension = " .sxm" , qudi = False )
121121
122122afm = afm_measurements[" 20230101-0420-00" ].data
123123
@@ -218,18 +218,30 @@ sns.lineplot(x=pys["time_bins"], y=pys["counts"], ax=ax)
218218dh.save_figures(filepath = " pys_measurement" , fig = fig)
219219```
220220
221- ### Example 7: Bruker MFM data (PySPM integration)
221+ ### Example 7: Bruker MFM data
222222
223223``` python
224224bruker_measurements = dh.load_measurements(measurement_str = " " , extension = " .001" , qudi = False )
225- bruker_data = bruker_measurements[list (bruker_measurements)[0 ]].data
226225
226+ bruker_data = bruker_measurements[" 20230101-0420-00" ].data
227+
228+ # Print the channels available in the data
229+ bruker_data.list_channels()
227230mfm = bruker_data.get_channel(" Phase" , mfm = True )
228231
229232fig, ax = plt.subplots()
230- mfm.show(cmap = " inferno" , ax = ax, title = " " , vmin = 1 , vmax = 3 )
231- mfm.add_scale(length = 1 , ax = ax, color = " white" , height = 1 , fontsize = 10 , edge_width = 0 , loc = 1 )
232- dh.save_figures(filepath = " mfm_measurement" , fig = fig, only_pdf = True )
233+
234+ # Perform (optional) image corrections
235+ mfm.correct_plane()
236+ mfm.zero_min()
237+
238+ # Add scale bar, color bar and plot the data
239+ img = mfm.show(cmap = " inferno" , ax = ax)
240+ mfm.add_scale(length = 1 , ax = ax, height = 1 , fontsize = 10 )
241+ cbar = fig.colorbar(img)
242+ cbar.set_label(" MFM contrast (deg)" )
243+
244+ dh.save_figures(filepath = " MFM" , fig = fig, only_jpg = True )
233245```
234246
235247## Measurement Dataclass Schema
0 commit comments