Timeline for Labelling ArrayPlot Charts
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 17, 2017 at 16:29 | comment | added | Brian Moths |
This fails for me if you are doing a 2x2 array, as in ArrayPlot[RandomReal[1, {#1, #2}], FrameTicks -> {yticks[[;; #1]], xticks[[;; #2]]}] &[2, 2] . It works in other cases. As a workaround for the 2x2 case, just add on a junk value for xticks or yticks , it will just ignore the extra. For example, this works ArrayPlot[RandomReal[1, {#1, #2}], FrameTicks -> {yticks, xticks[[;; #2]]}] &[2, 2] . There is probably a better way of doing in though. (yticks and xticks are as defined in your answer).
|
|
Apr 24, 2012 at 22:29 | vote | accept | canadian_scholar | ||
Apr 24, 2012 at 22:15 | history | answered | rm -rf♦ | CC BY-SA 3.0 |