Skip to content

Commit

Permalink
Update io_lid_files.py
Browse files Browse the repository at this point in the history
plt.colorbar(m)->plt.colorbar(m,None,ax)
  • Loading branch information
ksmet1977 authored Nov 24, 2023
1 parent d9534fd commit 6292cbb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion luxpy/toolboxes/iolidfiles/io_lid_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,11 @@ def _make_3D_lid_plot(xm_map, ym_map, zm_map, values_map, plot_luminaire_positio
m = cm.ScalarMappable(cmap=plt.cm.jet, norm=norm)
m.set_array([])
plt.sca(ax)
cbar = plt.colorbar(m)
#from mpl_toolkits.axes_grid1 import make_axes_locatable
#divider = make_axes_locatable(ax)
#cax = divider.append_axes("right", size="5%", pad=0.05)
#cbar = plt.colorbar(m,cax)
cbar = plt.colorbar(m,None,ax) #used to be: cbar = plt.colorbar(m)
cbar.set_label('Normalized luminous intensity ($I_0 = 1$)')

if plot_luminaire_position:
Expand Down

0 comments on commit 6292cbb

Please sign in to comment.