« Jリーグの勝ち点をpylabでプロットしてみたら無駄に美しかった件。 | トップページ | Jリーグの勝ち点をpylabでプロットしてみた2。 »

2011年9月 2日 (金)

pylabのimshowをMatlabのようにカクカクなピクセルで表示

Test

pylabを使っていると、デフォルトの設定がMATLABと違うこともあり、度々ドキュメンテーションを見に行かなければいけない。
pylabのimshowはデフォルトではblurがかかって滑らかな表示になって、写真などのイメージを見る場合はこの方がきれい。しかし、研究に使うとなると正確さが一番なのでMATLABのようにピクセルの形がみえるような表示が好ましい。ま、設定できるだろうとおもいつつも、なかなか調べずにいた件をようやく調べたのでメモ。

ドキュメンテーションによるとinterpolationというパラメーターを指定すればいいらしい。

imshow(data)
だと左のようになる。
imshow(data, interpolation='nearest')
だとMATLABのようになる。

from pylab import *
data =randint(0,255,(15,5))
subplot(121)
imshow(data)
subplot(122)
imshow(data, interpolation='nearest')

追記) site-packages\matplotlib\mpl-dataにあるmatplotlibrcファイルを書き換えて、デフォルト設定を変更することもできる。これは楽。
295行目あたりにあるimage.interpolationを
image.interpolation  : nearest
のようにnearestに書き換える。行頭のコメントアウトの#を削除するのを忘れずに。(まめちき:アメリカでは#はパウンドと呼びます。シャープではない。)

« Jリーグの勝ち点をpylabでプロットしてみたら無駄に美しかった件。 | トップページ | Jリーグの勝ち点をpylabでプロットしてみた2。 »

Python」カテゴリの記事

コメント

https://www.yeezy500boost.us.com/
https://www.nikeoutletsonline.us.com/
https://www.pandoracharmsbracelets.us.com/
https://www.nike-sneakers.us.com/
https://www.nike-outletfactory.us.com/
https://www.nikepresto.us.org/
https://www.nikesoutlets.us.com/
https://www.nike-onlinecanada.ca/
https://www.yeezyshoesstore.ca/
https://www.nikeshoesshop.ca/
https://www.yeezyshop.us.com/
https://www.adidasstoreonline.us.com/
https://www.newadidasshoes.us.com/
https://www.nmdsadidas.us.com/
https://www.adidasshoesonline.us.com/
https://www.nikeshoesoutlets.us.com/
https://www.nikesstoreoutlet.us.com/
https://www.yeezyshoesadidas.us.com/
https://www.pandorarings.uk.com/
https://pandorabracelets-charms.us.com/
https://www.airforce1s.us.com/
https://www.nikesneakersstore.us.com/
https://www.shoesoutletstores.ca/
https://www.adidass.us.com/
https://www.adidasoutletstores.us.com/
https://www.pandorascharms.uk.com/
https://www.nmd.uk.com/
https://www.nikeoutletstores.us.com/
https://www.newtrainers.uk.com/
https://www.adidasyeezyofficialwebsite.us.com/
https://www.nikeclearances.us.com/
https://www.adidas-originalssuperstar.us.com/
https://www.outletadidasshoes.us.com/
https://www.yeezysboost-350.us.com/
https://www.officialyeezywebsite.us.com/
https://www.nikeclearancestores.us.com/
https://www.jewelrypandora.us.org/
https://www.trainerssale.uk.com/
https://www.yeezyboost350v2.us.com/
https://www.ultraboost.uk.com/
https://www.adidasultraboost.shop/
https://www.pandorasjewelry.uk.com/
https://www.adidascom.us.com/
https://www.ultra-boost.us.com/
https://www.adidassuperstars.us.com/
https://www.nikeoutletstore.ca/
https://www.trainersstore.uk.com/
https://www.adidasshoesshop.us.com/
https://www.yeezyshoesboost.us.com/
https://www.yeezy350shoes.ca/
https://www.pandoracharmsbracelet.us.com/
https://www.nikeair-force1.us.com/
https://www.nike-rosherun.us.com/
https://www.adidas-superstars.us.com/
https://www.adidasyeezys.us.com/
https://www.nikeoutlet--store.us.com/
https://www.nikesrunningshoes.us.com/
https://www.yeezycanadastore.ca/
https://www.pandorajewelryuk.uk.com/
https://www.nikecanada-onlineshopping.ca/
https://www.pandoras.uk.com/
https://www.offwhite-shoes.us.com/
https://www.trainersoutlet.uk.com/
https://www.adidasoutletshoes.us.com/

https://www.adidasstoreoutlets.us.com/
https://www.nikecanada-shoes.ca/
https://www.nikesneakersforwomen.us.com/
https://www.yeezycanadashop.ca/
https://www.balenciagatriplessneakers.us.com/
https://www.balenciagasneakersoutlet.us.com/
https://www.airjordan1shoes.us.com/
https://www.nikerunningshoessale.us.com/
https://www.cheapshoesoutletonlines.us/
https://www.monclersjacketsoutlet.us.com/
https://www.monclerjacket.com.co/
https://www.ferragamosbelts.us.com/
https://www.adidascanadaonline.ca/
https://www.outletasics.us.com/
https://www.shoesferragamo.us.com/
https://www.cheapmoncler.com.co/
https://www.nikestorefactorys.us.com/
https://www.pandorasjewelrys.us.com/
https://www.pandorabraceletscharms.us.com/
https://www.pandorabraceletsclearance.us.com/
https://www.pandoras-charms.us.com/
https://www.pandorascom.us.com/
https://www.pandorasjewelry-officialsite.us.com/
https://www.pandorashop.us.com/
https://www.cheapjordanshoeswholesale.us/
https://www.jordanones.us/
https://www.pandorasjewellery.us.com/
https://www.asicssneakers.us.com/
https://www.salvatoreferragamos.us.com/
https://www.nikeshoes-forwomen.us.com/
https://www.yeezysshoes.ca/
https://www.pandoraoutletscharms.us.com/
https://www.pandoraringsjewelry.us.com/
https://www.jordan1high.us/
https://www.adidass.ca/
https://www.nikeairjordan1.us.com/
https://www.yeezys350.ca/
https://www.trainersshop.uk.com/
https://www.airjordans1.us.com/
https://www.balenciagashoesstore.us.com/
https://www.pandoracharms-bracelets.us/
https://www.adidasshoeswomen.us.com/
https://www.pandoracharmsjewelrys.us/
https://www.nikescanadaonlineshopping.ca/
https://www.pandorasrings.us.com/
https://www.asicsshoess.us.com/
https://www.jewelryspandora.us/
https://www.jordan1low.us.com/
https://www.balenciagastore.us.com/
https://www.nikeshoes-formen.us.com/
https://www.balenciagashoess.us.com/
https://www.charmspandoras.us/
https://www.pandorajewelrywebsites.us.com/
https://www.pandoraoutletsonline.us.com/
https://www.adidasnewshoes.us.com/
https://www.pandorajewelrysofficialsite.us.com/
https://www.monclersfactory.us.com/
https://www.asicsrunningshoess.us.com/
https://www.pandorajewelrysbracelets.us.com/
https://www.nikemensshoes.us.com/
https://www.pandora-outletcharms.us.com/
https://www.nikeshoesnew.us.com/
https://www.pandoracharmsstore.us.com/
https://www.airjordan1s.us.com/
https://www.pandorasjewelrycharms.us.com/
https://www.monclersaleoutlets.us.com/
https://www.adidas-runningshoes.us.com/
https://www.nikeshoess.ca/
https://www.nikecanadaonlines.ca/
https://www.nikecanadaonlineshopping.ca/
https://www.yeezycom.us/
https://www.pandoracharmss.us.com/
https://www.nikeoutlets.ca/
https://www.pandorajewelrybracelets.us.com/
https://www.jordan1shoes.us.com/
https://www.goyardbagsoutlet.us.com/
https://www.ferragamosbelt.us.com/
https://www.pandorasofficialsite.us.com/
https://www.monclersale.com.co/
https://www.wholesalejordanshoes.us.org/
https://www.pandorajewelry-officialsites.us/
https://www.goyardhandbagsoutlet.us.com/
https://www.adidasofficialwebsite.us.com/
https://www.pandora-jewellery.us.com/
https://www.pumashoess.us.com/
https://www.newshoes2021.us/
https://www.pandorasstore.us.com/
https://www.adidasshoesfactory.us.com/
https://www.pandoraoutletjewelry.us.com/
https://www.pandorashops.us.com/
https://www.shoesasicsoutlet.us.com/
https://www.monclercoatsjacketsoutlet.us.com/
https://www.diorjordan1.us.com/
https://www.bestbasketballshoes.us/
https://www.pandoracharms-bracelets.us.com/
https://www.pandorasbraceletcharms.us.com/
https://www.nikeonline-canada.ca/
https://www.nikeoutletstore-onlineshopping.us.com/
https://www.jordan1retro.us.com/
https://www.pandorastores.us.com/
https://www.balenciagasneakerssales.us.com/
https://www.asicsgel-kayano.us.com/
https://www.pandora-charmssaleclearance.us/
https://www.airmax720.us.com/
https://www.nmd.us.com/
https://www.ferragamocom.us/
https://www.pandora-jewelryoutlets.us.com/
https://www.pandorasjewelrysite.us.com/
https://www.adidasshoes-canada.ca/
https://www.nikeoutletstoreonlineshopping.us.com/
https://www.outletsmonclerjackets.us.com/
https://www.pandorasjewelryofficialsite.us.com/
https://www.nikesstore.us.com/
https://www.pandorass.us/
https://www.adidasshoescheap.us.com/
https://www.sneakersadidas.us.com/
https://www.asicsoutletshoes.us.com/
https://www.airjordan1low.us/
https://www.monclercoat.com.co/
https://www.pandorajewelrysblackfriday.us.com/
https://www.pandoras-outlet.us.com/
https://www.wholesalejordanshoes.us/
https://www.pandoraofficialsites.us.com/
https://www.airjordan1retro.us.com/
https://www.pandorasjewelryoff.us.com/
https://www.nikestoreoutlets.us.com/
https://www.adidassale.us.com/
https://www.pandoraoutlet-online.us.com/
https://www.pandoraoutletscharms.us/
https://www.nikesnkrs.ca/
https://www.nikesneakersformen.us.com/
https://www.nike--shoes.ca/
https://www.nikeshoeswomen.us.com/
https://www.pandora-store.us.com/
https://www.wholesaleairjordanscheap.us/
https://www.nikecom.ca/
https://www.pandorajewelryoff.us.com/
https://www.trainersforsale.uk.com/
https://www.pandorashops.us/
https://www.pandorasoutlet.us.com/
https://www.jordanretro1.us.com/
https://www.pandorajewelryshop.us.com/
https://www.outletstoreonlineshopping.com.co/
https://www.balenciagastores.us.com/
https://www.pandorabraceletsjewelry.us.com/
https://www.adidasshoesmen.us.com/

https://www.redbottomslouboutin.us.org/
https://www.pandorajewelryofficialsite.us.com/
https://www.pandora-braceletcharms.us/
https://www.moncleroutletstoreonline.us.com/
http://www.pandorarings.us.com/
https://www.nike-airmax2018.us.com/
https://www.jordan-retro5.us/
https://www.jordans-sneakers.us.com/
https://www.jordanretros.us.com/
https://www.nikeofficialwebsite.us.com/
https://www.nikesoutletstoreonlineshopping.us.com/
https://www.jordanretro11mens.us/
https://www.jamesharden-shoes.us.org/
https://www.airjordan6rings.us/
https://www.jordan13s.us/
https://www.ggdbs.us.com/
https://www.nikesfactory.us.com/
https://www.pandoraonline.us/
https://www.monclerstores.us.com/
https://www.airforceoneshoes.us.com/
https://www.airjordan11s.us.com/
https://www.fitflopsclearance.us.com/
https://www.pandorajewellery.us.com/
https://www.pandoras.us.com/
https://www.moncler-outletjackets.us.com/
https://www.nike--shoes.us.com/
https://www.eccos.us.com/
https://www.huarachesnike.us.com/
https://www.newjordan11.us/
https://www.jordan11low.us.com/
https://www.jordan12retros.us/
https://www.nikeshoesoutletfactory.us.com/
https://www.jordans11.us.com/
https://www.air-jordan6.us/
https://www.monclerjacketsstore.us.com/
https://www.airjordanretro11.us.com/
https://www.goldensgoose.us.com/
https://www.sneakersgoldengoose.us.com/
https://www.jordan11winlike96.us/
https://www.jordan9.us.com/
https://www.airjordansneakers.us.com/
https://www.air-jordan12.us/
https://www.jordanscheapshoes.us/
https://www.jordans4retro.us/
https://www.jordanshoess.us.com/
https://www.monclercom.us.com/
https://www.nikeshoes-cheap.us.com/
https://www.fjallraven-kanken.us.com/
https://www.jordans-11.us/
https://www.pandorasjewelry.us.com/
https://www.retrosairjordan.us/
https://www.goldengooseshoess.us.com/
https://www.nmds.us.com/
https://www.air-jordans11.us.com/
https://www.newjordansshoes.us.com/
https://www.nikeairmax98.us/
https://www.adidasnmdr1.us.org/
https://www.newnikeshoes.us.com/
https://www.yeezys-shoes.us.org/
https://www.monclervest.us.com/
https://www.yeezyonline.us.com/
https://www.jordansretro3.us/
https://www.ferragamos.us.org/
https://www.nikesnkrs.us.com/
https://www.goldengoosemidstar.us.com/
https://www.jordan-4.us.com/
https://www.air-jordanssneakers.us/
https://www.airjordan3s.us/
https://www.nikesales.us.com/
https://www.new-jordans.us.com/
https://www.jordan10.us.com/
https://www.jordanshoesretro.us.com/
https://www.jordan-shoesformen.us.com/
https://www.shoes-jordan.us.com/
https://www.jordan1.us.com/
https://www.nikeairforce1.us.org/
https://www.monclerstoreoutlet.us.com/
https://www.louboutinsshoes.us.com/
https://www.airjordan4s.us/
http://www.yeezys.com.co/
https://www.monclerjacket.us.org/
https://www.balenciagas.us.org/
https://www.air-max90.us.com/
https://www.yeezy.us.org/
https://www.jordan-8.us/
https://www.pandorajewelryofficial-site.us/
https://www.birkin-bag.us.com/
https://www.goldengoosessneakers.us.com/
https://www.jordans5.us/
https://www.yeezys-shoes.us.com/
https://www.jordan11ssneakers.us/
https://www.fitflop-shoes.us.org/
https://www.outletgoldengoose.us.com/
https://www.goldengoosesales.us.com/
https://www.nikeoutletstoresonlineshopping.us.com/
https://www.pandoracanadajewelry.ca/
https://www.jameshardenshoes.com.co/
https://www.pandoraringssite.us/
https://www.jordans-4.us/
https://www.adidasyeezysshoes.us.com/
https://www.ggdbsneakers.us.com/
https://www.jordan-12.us.com/
https://www.retro-jordans.us/
https://www.nikeoutletshoes.us.com/
https://www.balenciagatriples.us.org/
https://www.kyrieirving-shoes.us.org/
https://www.redbottomshoeslouboutin.us.com/
https://www.retrosjordans.us/
https://www.jordan11red.us.com/
https://www.pandorascharms.us.com/
https://www.nikeshoesforwomens.us.com/
https://www.nikeairjordan.us.com/
https://www.pandorasjewelry.ca/
https://www.nikeair-maxs.us.com/
https://www.canadapandoracharms.ca/
https://www.airmax-95.us.com/
https://www.red-bottomsshoes.us.com/
https://www.jordansretro12.us/
https://www.soccercleats.us.com/
https://www.valentinosshoes.us.org/
https://www.air-jordansneakers.us/
https://www.jordansneakerss.us/
https://www.airjordan5.us/
https://www.mensnikeshoes.us.com/
https://www.shoeslouboutin.us.com/
https://www.goldengoosesneakerss.us.com/
https://www.jordan14.us.com/
https://www.jacketsmoncleroutlet.us.com/
https://www.airmax270.us.org/
https://www.jordanretro-11.us.com/
https://www.jordan-retro6.us/
https://www.jordan11sshoes.us/
https://www.ggdbshoes.us.com/
https://www.ferragamo-outlets.us/
https://www.goldengooseoutletfactory.us.com/
https://www.outletnikestore.us.com/

https://www.goldengooseoutletfactory.us.com/
https://www.airforceoneshoes.us.com/
https://www.airjordan3s.us/
https://www.pandorajewelryofficialsite.us.com/
https://www.outletnikestore.us.com/
https://www.goldengoosesneakerss.us.com/
https://www.jordan-retro5.us/
https://www.jordan-12.us.com/
https://www.monclercom.us.com/
https://www.goldengoosemidstar.us.com/
https://www.nikeofficialwebsite.us.com/
https://www.jordan12retros.us/
https://www.jordan13s.us/
http://www.yeezys.com.co/
https://www.jordan-8.us/
https://www.yeezyonline.us.com/
https://www.pandorasjewelry.ca/
https://www.shoes-jordan.us.com/
https://www.monclerstores.us.com/
https://www.nikesales.us.com/
https://www.nikeairmax98.us/
https://www.jordans11.us.com/
https://www.goldengooseshoess.us.com/
https://www.air-jordansneakers.us/
https://www.jordans-4.us/
https://www.airjordansneakers.us.com/
https://www.nikeoutletshoes.us.com/
https://www.new-jordans.us.com/
https://www.nmds.us.com/
https://www.nikesfactory.us.com/
https://www.redbottomshoeslouboutin.us.com/
https://www.fitflop-shoes.us.org/
https://www.jordan14.us.com/
https://www.soccercleats.us.com/
https://www.louboutinsshoes.us.com/
https://www.jordanshoess.us.com/
https://www.kyrieirving-shoes.us.org/
https://www.adidasyeezysshoes.us.com/
https://www.pandorajewellery.us.com/
https://www.moncler-outletjackets.us.com/
https://www.nikeairjordan.us.com/
https://www.ggdbsneakers.us.com/
https://www.newnikeshoes.us.com/
https://www.canadapandoracharms.ca/
https://www.adidasnmdr1.us.org/
https://www.jacketsmoncleroutlet.us.com/
https://www.jameshardenshoes.com.co/
https://www.red-bottomsshoes.us.com/
https://www.fitflopsclearance.us.com/
https://www.jordans4retro.us/
https://www.jamesharden-shoes.us.org/
https://www.jordan1.us.com/
https://www.newjordan11.us/
https://www.balenciagas.us.org/
https://www.nikeairforce1.us.org/
https://www.nikeshoesoutletfactory.us.com/
https://www.monclerstoreoutlet.us.com/
https://www.pandoraonline.us/
https://www.pandoracanadajewelry.ca/
https://www.air-jordanssneakers.us/
https://www.moncleroutletstoreonline.us.com/
https://www.jordan11red.us.com/
https://www.monclervest.us.com/
https://www.jordan-4.us.com/
https://www.shoeslouboutin.us.com/
https://www.ggdbshoes.us.com/
https://www.jordanretros.us.com/
https://www.mensnikeshoes.us.com/
https://www.goldensgoose.us.com/
https://www.jordan11sshoes.us/
https://www.nikeshoes-cheap.us.com/
http://www.pandorarings.us.com/
https://www.nikeoutletstoresonlineshopping.us.com/
https://www.ferragamo-outlets.us/
https://www.jordanscheapshoes.us/
https://www.goldengoosesales.us.com/
https://www.yeezys-shoes.us.org/
https://www.newjordansshoes.us.com/
https://www.retro-jordans.us/
https://www.retrosjordans.us/
https://www.jordanretro11mens.us/
https://www.jordansneakerss.us/
https://www.jordansretro12.us/
https://www.air-jordans11.us.com/
https://www.ferragamos.us.org/
https://www.retrosairjordan.us/
https://www.airmax270.us.org/
https://www.outletgoldengoose.us.com/
https://www.pandorasjewelry.us.com/
https://www.sneakersgoldengoose.us.com/
https://www.airjordanretro11.us.com/
https://www.jordan11winlike96.us/
https://www.pandorascharms.us.com/
https://www.birkin-bag.us.com/
https://www.nike-airmax2018.us.com/
https://www.jordanshoesretro.us.com/
https://www.eccos.us.com/
https://www.airjordan5.us/
https://www.jordan-shoesformen.us.com/
https://www.jordan10.us.com/
https://www.jordans-sneakers.us.com/
https://www.airjordan4s.us/
https://www.nikesoutletstoreonlineshopping.us.com/
https://www.pandorajewelryofficial-site.us/
https://www.monclerjacket.us.org/
https://www.jordanretro-11.us.com/
https://www.jordansretro3.us/
https://www.ggdbs.us.com/
https://www.air-max90.us.com/
https://www.pandoras.us.com/
https://www.air-jordan12.us/
https://www.fjallraven-kanken.us.com/
https://www.balenciagatriples.us.org/
https://www.jordan-retro6.us/
https://www.redbottomslouboutin.us.org/
https://www.jordans5.us/
https://www.nikeshoesforwomens.us.com/
https://www.nikeair-maxs.us.com/
https://www.yeezy.us.org/
https://www.nike--shoes.us.com/
https://www.air-jordan6.us/
https://www.nikesnkrs.us.com/
https://www.valentinosshoes.us.org/
https://www.airjordan6rings.us/
https://www.jordan11ssneakers.us/
https://www.pandora-braceletcharms.us/
https://www.yeezys-shoes.us.com/
https://www.jordan9.us.com/
https://www.goldengoosessneakers.us.com/
https://www.monclerjacketsstore.us.com/
https://www.jordans-11.us/
https://www.airjordan11s.us.com/
https://www.huarachesnike.us.com/
https://www.airmax-95.us.com/
https://www.jordan11low.us.com/
https://www.pandoraringssite.us/

コメントを書く

(ウェブ上には掲載しません)

トラックバック


この記事へのトラックバック一覧です: pylabのimshowをMatlabのようにカクカクなピクセルで表示:

« Jリーグの勝ち点をpylabでプロットしてみたら無駄に美しかった件。 | トップページ | Jリーグの勝ち点をpylabでプロットしてみた2。 »

しろののツイッタータイムライン(凍結中)

  • ツイッターは5つ目も凍結されました。6つ目での復活も不可能。なのでnoteに注力しています。

    と思ったら、イーロン・マスクの買収が公になってアカウントが復活できました。ありがとうマスク。

    トランプ関連記事の一覧リスト

オススメたち

2022年8月
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

はてブ

無料ブログはココログ