Skip to content

Commit

Permalink
Merge pull request #26 from ConorMacBride/remove-log-scale
Browse files Browse the repository at this point in the history
Remove log scale from mcalf.visualisation.bar
  • Loading branch information
ConorMacBride committed Apr 13, 2021
2 parents 1f7870c + a2a1144 commit 72014db
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
Binary file modified src/mcalf/tests/baseline_mpl_334_ft_261/test_bar.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/mcalf/tests/baseline_mpl_334_ft_261/test_bar_allbad.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/mcalf/tests/baseline_mpl_334_ft_261/test_bar_range.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/mcalf/tests/baseline_mpl_334_ft_261/test_bar_reduce.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/mcalf/tests/figure_hashes_mpl_334_ft_261.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@
"mcalf.tests.visualisation.test_classifications.test_plot_classifications_4x1": "a0423741fff2b53026539c369224f1ddd0d33dd7c1d617961347d0b0fd342775",
"mcalf.tests.visualisation.test_classifications.test_plot_classifications_3x2": "02b608424712492ebb8bfc348060b75275f8e33e94ec02d9919c41dc7ee349a7",
"mcalf.tests.visualisation.test_classifications.test_plot_classifications_not01": "f0a337d216a30ad643168a59f25337dd935ce1e836feeffa99d2cfbaa33fa2f7",
"mcalf.tests.visualisation.test_classifications.test_bar": "5ac76da5cde2d6fb9bd56b5de7755038361065aa3baa378f029c06d7975b067d",
"mcalf.tests.visualisation.test_classifications.test_bar_range": "6fc4d3b0d008c18340ba0cad26da6ab208139ca6d0166b56199359f6efe31be5",
"mcalf.tests.visualisation.test_classifications.test_bar_reduce": "f20c3d19c5b9b5589068252a844553a30afd360977915c596b9e0e0eac0e942e",
"mcalf.tests.visualisation.test_classifications.test_bar_allbad": "2d0f5291fed08244d0047a9f2e1fbcaae5e138ae92d5dc7cb0fed8f1c3a81bad",
"mcalf.tests.visualisation.test_classifications.test_bar": "14b8b6b866e6e79f78422be8a2eddc1dd32ff4c2a8f6186ec6d574c64c096616",
"mcalf.tests.visualisation.test_classifications.test_bar_range": "4d1275dbe9161dfe2dd7d179d0aed297a051813c5c1cd38cc15441a15e283838",
"mcalf.tests.visualisation.test_classifications.test_bar_reduce": "1df01c53b7003e077c4252612055989eaaf9ac44d22cd27f04cc4f3e6aceb859",
"mcalf.tests.visualisation.test_classifications.test_bar_allbad": "4a13c89e8e6b90406679544c0ace341011841c4a0e5e05bfa8cfbb71bf900010",
"mcalf.tests.visualisation.test_classifications.test_plot_class_map": "00370982ff1c8a9faebc75934eb543efcd2af05f727505b2cfbbc89a6e1389d6",
"mcalf.tests.visualisation.test_classifications.test_plot_class_map_nocolorbar": "ea8804d898ff62767aa055f81bdacfd2afef68d663d0b2670bc006bc93d7c289",
"mcalf.tests.visualisation.test_classifications.test_plot_class_map_range": "e1fed8e6f20f1630a7f64d1df8c9f57685bceb7862f8a5f8b11ae554990766ce",
"mcalf.tests.visualisation.test_classifications.test_plot_class_map_units": "3737733a86ca318cfa6bde65cf922934f269b72cba90c75361971221000fbd27",
"mcalf.tests.visualisation.test_classifications.test_plot_class_map_allbad": "944e89a497b2e481fe6f61552964d1c183cd39e778113ac366a3ff55dce107a5",
"mcalf.tests.visualisation.test_classifications.test_plot_bar_and_class_map": "6a341082b466fb7157b355bd794aa5d9574b5e201b42f0f5735c33a23fb4da91",
"mcalf.tests.visualisation.test_classifications.test_plot_bar_and_class_map": "af1291cf4c4a04efd98fc0a69fe92ba422742e332d8018fbe5ce5b18a748d6c2",
"mcalf.tests.visualisation.test_spec.test_plot_spectrum": "79afa94c229e75646304b14bb388df30f23d6fd06ac82cfa4443ab05fc4c4a4a",
"mcalf.tests.visualisation.test_spec.test_plot_spectrum_no_smooth": "c4bf62988715825cecaf75e03b66c05231854e5b84962fbd03f11e1c381e1273",
"mcalf.tests.visualisation.test_spec.test_plot_spectrum_no_norm": "f4a52acdbb2a614e0a775ff7833a95151bf6188126286d1eb87fedef7f324711",
Expand Down
2 changes: 1 addition & 1 deletion src/mcalf/visualisation/classifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def bar(class_map=None, vmin=None, vmax=None, reduce=True, style='original', cma

b = ax.bar(data['classes'], d, color=data['cmap'](np.arange(len(data['classes']))))

ax.set(xlabel='classification', ylabel='abundance (%)', yscale='log', ylim=(0.01, 100),
ax.set(xlabel='classification', ylabel='abundance (%)',
xticks=data['classes'], xticklabels=data['classes'])

return b
Expand Down

0 comments on commit 72014db

Please sign in to comment.