Spy

Source code Author Update time

using Plots
gaston()

For a matrix mat with unique nonzeros spy(mat) returns a colorless plot. If mat has various different nonzero values, a colorbar is added. The colorbar can be disabled with legend = nothing.

using SparseArrays
a = spdiagm(0 => ones(50), 1 => ones(49), -1 => ones(49), 10 => ones(40), -10 => ones(40))
b = spdiagm(0 => 1:50, 1 => 1:49, -1 => 1:49, 10 => 1:40, -10 => 1:40)
plot(spy(a), spy(b), title = ["Unique nonzeros" "Different nonzeros"])
Gnuplot Produced by GNUPLOT 5.4 patchlevel 2 0 10 20 30 40 50 0 10 20 30 40 50 gnuplot_plot_1a Unique nonzeros 0 10 20 30 40 50 0 10 20 30 40 50 gnuplot_plot_1b gnuplot_plot_2b gnuplot_plot_3b gnuplot_plot_4b gnuplot_plot_5b gnuplot_plot_6b gnuplot_plot_7b gnuplot_plot_8b gnuplot_plot_9b gnuplot_plot_10b gnuplot_plot_11b gnuplot_plot_12b gnuplot_plot_13b gnuplot_plot_14b gnuplot_plot_15b gnuplot_plot_16b gnuplot_plot_17b gnuplot_plot_18b gnuplot_plot_19b gnuplot_plot_20b gnuplot_plot_21b gnuplot_plot_22b gnuplot_plot_23b gnuplot_plot_24b gnuplot_plot_25b gnuplot_plot_26b gnuplot_plot_27b gnuplot_plot_28b gnuplot_plot_29b gnuplot_plot_30b gnuplot_plot_31b gnuplot_plot_32b gnuplot_plot_33b gnuplot_plot_34b gnuplot_plot_35b gnuplot_plot_36b gnuplot_plot_37b gnuplot_plot_38b gnuplot_plot_39b gnuplot_plot_40b gnuplot_plot_41b gnuplot_plot_42b gnuplot_plot_43b gnuplot_plot_44b gnuplot_plot_45b gnuplot_plot_46b gnuplot_plot_47b gnuplot_plot_48b gnuplot_plot_49b gnuplot_plot_50b gnuplot_plot_51b gnuplot_plot_52b gnuplot_plot_53b gnuplot_plot_54b gnuplot_plot_55b gnuplot_plot_56b gnuplot_plot_57b gnuplot_plot_58b gnuplot_plot_59b gnuplot_plot_60b gnuplot_plot_61b gnuplot_plot_62b gnuplot_plot_63b gnuplot_plot_64b gnuplot_plot_65b gnuplot_plot_66b gnuplot_plot_67b gnuplot_plot_68b gnuplot_plot_69b gnuplot_plot_70b gnuplot_plot_71b gnuplot_plot_72b gnuplot_plot_73b gnuplot_plot_74b gnuplot_plot_75b gnuplot_plot_76b gnuplot_plot_77b gnuplot_plot_78b gnuplot_plot_79b gnuplot_plot_80b gnuplot_plot_81b gnuplot_plot_82b gnuplot_plot_83b gnuplot_plot_84b gnuplot_plot_85b gnuplot_plot_86b gnuplot_plot_87b gnuplot_plot_88b gnuplot_plot_89b gnuplot_plot_90b gnuplot_plot_91b gnuplot_plot_92b gnuplot_plot_93b gnuplot_plot_94b gnuplot_plot_95b gnuplot_plot_96b gnuplot_plot_97b gnuplot_plot_98b gnuplot_plot_99b gnuplot_plot_100b gnuplot_plot_101b gnuplot_plot_102b gnuplot_plot_103b gnuplot_plot_104b gnuplot_plot_105b gnuplot_plot_106b gnuplot_plot_107b gnuplot_plot_108b gnuplot_plot_109b gnuplot_plot_110b gnuplot_plot_111b gnuplot_plot_112b gnuplot_plot_113b gnuplot_plot_114b gnuplot_plot_115b gnuplot_plot_116b gnuplot_plot_117b gnuplot_plot_118b gnuplot_plot_119b gnuplot_plot_120b gnuplot_plot_121b gnuplot_plot_122b gnuplot_plot_123b gnuplot_plot_124b gnuplot_plot_125b gnuplot_plot_126b gnuplot_plot_127b gnuplot_plot_128b gnuplot_plot_129b gnuplot_plot_130b gnuplot_plot_131b gnuplot_plot_132b gnuplot_plot_133b gnuplot_plot_134b gnuplot_plot_135b gnuplot_plot_136b gnuplot_plot_137b gnuplot_plot_138b gnuplot_plot_139b gnuplot_plot_140b gnuplot_plot_141b gnuplot_plot_142b gnuplot_plot_143b gnuplot_plot_144b gnuplot_plot_145b gnuplot_plot_146b gnuplot_plot_147b gnuplot_plot_148b gnuplot_plot_149b gnuplot_plot_150b gnuplot_plot_151b gnuplot_plot_152b gnuplot_plot_153b gnuplot_plot_154b gnuplot_plot_155b gnuplot_plot_156b gnuplot_plot_157b gnuplot_plot_158b gnuplot_plot_159b gnuplot_plot_160b gnuplot_plot_161b gnuplot_plot_162b gnuplot_plot_163b gnuplot_plot_164b gnuplot_plot_165b gnuplot_plot_166b gnuplot_plot_167b gnuplot_plot_168b gnuplot_plot_169b gnuplot_plot_170b gnuplot_plot_171b gnuplot_plot_172b gnuplot_plot_173b gnuplot_plot_174b gnuplot_plot_175b gnuplot_plot_176b gnuplot_plot_177b gnuplot_plot_178b gnuplot_plot_179b gnuplot_plot_180b gnuplot_plot_181b gnuplot_plot_182b gnuplot_plot_183b gnuplot_plot_184b gnuplot_plot_185b gnuplot_plot_186b gnuplot_plot_187b gnuplot_plot_188b gnuplot_plot_189b gnuplot_plot_190b gnuplot_plot_191b gnuplot_plot_192b gnuplot_plot_193b gnuplot_plot_194b gnuplot_plot_195b gnuplot_plot_196b gnuplot_plot_197b gnuplot_plot_198b gnuplot_plot_199b gnuplot_plot_200b gnuplot_plot_201b gnuplot_plot_202b gnuplot_plot_203b gnuplot_plot_204b gnuplot_plot_205b gnuplot_plot_206b gnuplot_plot_207b gnuplot_plot_208b gnuplot_plot_209b gnuplot_plot_210b gnuplot_plot_211b gnuplot_plot_212b gnuplot_plot_213b gnuplot_plot_214b gnuplot_plot_215b gnuplot_plot_216b gnuplot_plot_217b gnuplot_plot_218b gnuplot_plot_219b gnuplot_plot_220b gnuplot_plot_221b gnuplot_plot_222b gnuplot_plot_223b gnuplot_plot_224b gnuplot_plot_225b gnuplot_plot_226b gnuplot_plot_227b gnuplot_plot_228b Different nonzeros

This page was generated using DemoCards.jl and Literate.jl.