Commit a3935ec9 authored by Edward Andò's avatar Edward Andò
Browse files

lower in plot for MMR example

parent 8846432d
Pipeline #49395 passed with stages
in 23 minutes and 22 seconds
...@@ -85,7 +85,7 @@ plt.figure() ...@@ -85,7 +85,7 @@ plt.figure()
tmp = jointHistogram.copy() tmp = jointHistogram.copy()
tmp[jointHistogram <= 0] = numpy.nan tmp[jointHistogram <= 0] = numpy.nan
tmp = numpy.log(tmp) tmp = numpy.log(tmp)
plt.imshow(tmp.T, origin='low', extent=[0.0, bins, 0.0, bins]) plt.imshow(tmp.T, origin='lower', extent=[0.0, bins, 0.0, bins])
plt.xlabel("x-ray grey levels") plt.xlabel("x-ray grey levels")
plt.ylabel("neutron grey levels") plt.ylabel("neutron grey levels")
plt.colorbar() plt.colorbar()
...@@ -99,7 +99,7 @@ for gp in gaussianParameters: ...@@ -99,7 +99,7 @@ for gp in gaussianParameters:
print("STEP 2: Create phase repartition") print("STEP 2: Create phase repartition")
phaseDiagram, actualVoxelCoverage = spam.DIC.phaseDiagram(gaussianParameters, jointHistogram, voxelCoverage=0.8, BINS=bins) phaseDiagram, actualVoxelCoverage = spam.DIC.phaseDiagram(gaussianParameters, jointHistogram, voxelCoverage=0.8, BINS=bins)
plt.figure() plt.figure()
plt.imshow(phaseDiagram.T, origin='low', extent=[0.0, bins, 0.0, bins], vmin=-0.5, vmax=nPhases + 0.5, cmap=mpl.cm.get_cmap('Set1_r', nPhases + 1)) plt.imshow(phaseDiagram.T, origin='lower', extent=[0.0, bins, 0.0, bins], vmin=-0.5, vmax=nPhases + 0.5, cmap=mpl.cm.get_cmap('Set1_r', nPhases + 1))
plt.xlabel("x-ray grey levels") plt.xlabel("x-ray grey levels")
plt.ylabel("neutron grey levels") plt.ylabel("neutron grey levels")
plt.colorbar(ticks=numpy.arange(0, nPhases + 1)) plt.colorbar(ticks=numpy.arange(0, nPhases + 1))
......
Markdown is supported
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