Julio Biason
2 years ago
6 changed files with 1228 additions and 0 deletions
@ -0,0 +1,967 @@ |
|||||||
|
# This file is automatically @generated by Cargo. |
||||||
|
# It is not intended for manual editing. |
||||||
|
version = 3 |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "adler" |
||||||
|
version = "1.0.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "android_system_properties" |
||||||
|
version = "0.1.5" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" |
||||||
|
dependencies = [ |
||||||
|
"libc", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "autocfg" |
||||||
|
version = "1.1.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "bitflags" |
||||||
|
version = "1.3.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "bumpalo" |
||||||
|
version = "3.12.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "bytemuck" |
||||||
|
version = "1.13.1" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "17febce684fd15d89027105661fec94afb475cb995fbc59d2865198446ba2eea" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "byteorder" |
||||||
|
version = "1.4.3" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "cc" |
||||||
|
version = "1.0.79" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "cfg-if" |
||||||
|
version = "1.0.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "chrono" |
||||||
|
version = "0.4.24" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "4e3c5919066adf22df73762e50cffcde3a758f2a848b113b586d1f86728b673b" |
||||||
|
dependencies = [ |
||||||
|
"iana-time-zone", |
||||||
|
"js-sys", |
||||||
|
"num-integer", |
||||||
|
"num-traits", |
||||||
|
"time", |
||||||
|
"wasm-bindgen", |
||||||
|
"winapi", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "cmake" |
||||||
|
version = "0.1.50" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "a31c789563b815f77f4250caee12365734369f942439b7defd71e18a48197130" |
||||||
|
dependencies = [ |
||||||
|
"cc", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "codespan-reporting" |
||||||
|
version = "0.11.1" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e" |
||||||
|
dependencies = [ |
||||||
|
"termcolor", |
||||||
|
"unicode-width", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "color_quant" |
||||||
|
version = "1.1.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "const-cstr" |
||||||
|
version = "0.3.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "ed3d0b5ff30645a68f35ece8cea4556ca14ef8a1651455f789a099a0513532a6" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "core-foundation" |
||||||
|
version = "0.9.3" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146" |
||||||
|
dependencies = [ |
||||||
|
"core-foundation-sys", |
||||||
|
"libc", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "core-foundation-sys" |
||||||
|
version = "0.8.3" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "core-graphics" |
||||||
|
version = "0.22.3" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "2581bbab3b8ffc6fcbd550bf46c355135d16e9ff2a6ea032ad6b9bf1d7efe4fb" |
||||||
|
dependencies = [ |
||||||
|
"bitflags", |
||||||
|
"core-foundation", |
||||||
|
"core-graphics-types", |
||||||
|
"foreign-types", |
||||||
|
"libc", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "core-graphics-types" |
||||||
|
version = "0.1.1" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "3a68b68b3446082644c91ac778bf50cd4104bfb002b5a6a7c44cca5a2c70788b" |
||||||
|
dependencies = [ |
||||||
|
"bitflags", |
||||||
|
"core-foundation", |
||||||
|
"foreign-types", |
||||||
|
"libc", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "core-text" |
||||||
|
version = "19.2.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "99d74ada66e07c1cefa18f8abfba765b486f250de2e4a999e5727fc0dd4b4a25" |
||||||
|
dependencies = [ |
||||||
|
"core-foundation", |
||||||
|
"core-graphics", |
||||||
|
"foreign-types", |
||||||
|
"libc", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "crc32fast" |
||||||
|
version = "1.3.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" |
||||||
|
dependencies = [ |
||||||
|
"cfg-if", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "cxx" |
||||||
|
version = "1.0.94" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "f61f1b6389c3fe1c316bf8a4dccc90a38208354b330925bce1f74a6c4756eb93" |
||||||
|
dependencies = [ |
||||||
|
"cc", |
||||||
|
"cxxbridge-flags", |
||||||
|
"cxxbridge-macro", |
||||||
|
"link-cplusplus", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "cxx-build" |
||||||
|
version = "1.0.94" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "12cee708e8962df2aeb38f594aae5d827c022b6460ac71a7a3e2c3c2aae5a07b" |
||||||
|
dependencies = [ |
||||||
|
"cc", |
||||||
|
"codespan-reporting", |
||||||
|
"once_cell", |
||||||
|
"proc-macro2", |
||||||
|
"quote", |
||||||
|
"scratch", |
||||||
|
"syn 2.0.11", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "cxxbridge-flags" |
||||||
|
version = "1.0.94" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "7944172ae7e4068c533afbb984114a56c46e9ccddda550499caa222902c7f7bb" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "cxxbridge-macro" |
||||||
|
version = "1.0.94" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "2345488264226bf682893e25de0769f3360aac9957980ec49361b083ddaa5bc5" |
||||||
|
dependencies = [ |
||||||
|
"proc-macro2", |
||||||
|
"quote", |
||||||
|
"syn 2.0.11", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "dirs-next" |
||||||
|
version = "2.0.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1" |
||||||
|
dependencies = [ |
||||||
|
"cfg-if", |
||||||
|
"dirs-sys-next", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "dirs-sys-next" |
||||||
|
version = "0.1.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" |
||||||
|
dependencies = [ |
||||||
|
"libc", |
||||||
|
"redox_users", |
||||||
|
"winapi", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "dlib" |
||||||
|
version = "0.5.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "ac1b7517328c04c2aa68422fc60a41b92208182142ed04a25879c26c8f878794" |
||||||
|
dependencies = [ |
||||||
|
"libloading", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "dwrote" |
||||||
|
version = "0.11.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "439a1c2ba5611ad3ed731280541d36d2e9c4ac5e7fb818a27b604bdc5a6aa65b" |
||||||
|
dependencies = [ |
||||||
|
"lazy_static", |
||||||
|
"libc", |
||||||
|
"winapi", |
||||||
|
"wio", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "flate2" |
||||||
|
version = "1.0.25" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841" |
||||||
|
dependencies = [ |
||||||
|
"crc32fast", |
||||||
|
"miniz_oxide", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "float-ord" |
||||||
|
version = "0.2.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "7bad48618fdb549078c333a7a8528acb57af271d0433bdecd523eb620628364e" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "font-kit" |
||||||
|
version = "0.11.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "21fe28504d371085fae9ac7a3450f0b289ab71e07c8e57baa3fb68b9e57d6ce5" |
||||||
|
dependencies = [ |
||||||
|
"bitflags", |
||||||
|
"byteorder", |
||||||
|
"core-foundation", |
||||||
|
"core-graphics", |
||||||
|
"core-text", |
||||||
|
"dirs-next", |
||||||
|
"dwrote", |
||||||
|
"float-ord", |
||||||
|
"freetype", |
||||||
|
"lazy_static", |
||||||
|
"libc", |
||||||
|
"log", |
||||||
|
"pathfinder_geometry", |
||||||
|
"pathfinder_simd", |
||||||
|
"walkdir", |
||||||
|
"winapi", |
||||||
|
"yeslogic-fontconfig-sys", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "foreign-types" |
||||||
|
version = "0.3.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" |
||||||
|
dependencies = [ |
||||||
|
"foreign-types-shared", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "foreign-types-shared" |
||||||
|
version = "0.1.1" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "freetype" |
||||||
|
version = "0.7.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "bee38378a9e3db1cc693b4f88d166ae375338a0ff75cb8263e1c601d51f35dc6" |
||||||
|
dependencies = [ |
||||||
|
"freetype-sys", |
||||||
|
"libc", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "freetype-sys" |
||||||
|
version = "0.13.1" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "a37d4011c0cc628dfa766fcc195454f4b068d7afdc2adfd28861191d866e731a" |
||||||
|
dependencies = [ |
||||||
|
"cmake", |
||||||
|
"libc", |
||||||
|
"pkg-config", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "getrandom" |
||||||
|
version = "0.2.8" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" |
||||||
|
dependencies = [ |
||||||
|
"cfg-if", |
||||||
|
"libc", |
||||||
|
"wasi 0.11.0+wasi-snapshot-preview1", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "gif" |
||||||
|
version = "0.11.4" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "3edd93c6756b4dfaf2709eafcc345ba2636565295c198a9cfbf75fa5e3e00b06" |
||||||
|
dependencies = [ |
||||||
|
"color_quant", |
||||||
|
"weezl", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "iana-time-zone" |
||||||
|
version = "0.1.54" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "0c17cc76786e99f8d2f055c11159e7f0091c42474dcc3189fbab96072e873e6d" |
||||||
|
dependencies = [ |
||||||
|
"android_system_properties", |
||||||
|
"core-foundation-sys", |
||||||
|
"iana-time-zone-haiku", |
||||||
|
"js-sys", |
||||||
|
"wasm-bindgen", |
||||||
|
"windows", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "iana-time-zone-haiku" |
||||||
|
version = "0.1.1" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "0703ae284fc167426161c2e3f1da3ea71d94b21bedbcc9494e92b28e334e3dca" |
||||||
|
dependencies = [ |
||||||
|
"cxx", |
||||||
|
"cxx-build", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "image" |
||||||
|
version = "0.24.6" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "527909aa81e20ac3a44803521443a765550f09b5130c2c2fa1ea59c2f8f50a3a" |
||||||
|
dependencies = [ |
||||||
|
"bytemuck", |
||||||
|
"byteorder", |
||||||
|
"color_quant", |
||||||
|
"jpeg-decoder", |
||||||
|
"num-rational", |
||||||
|
"num-traits", |
||||||
|
"png", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "jpeg-decoder" |
||||||
|
version = "0.3.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "bc0000e42512c92e31c2252315bda326620a4e034105e900c98ec492fa077b3e" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "js-sys" |
||||||
|
version = "0.3.61" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "445dde2150c55e483f3d8416706b97ec8e8237c307e5b7b4b8dd15e6af2a0730" |
||||||
|
dependencies = [ |
||||||
|
"wasm-bindgen", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "lazy_static" |
||||||
|
version = "1.4.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "libc" |
||||||
|
version = "0.2.140" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "99227334921fae1a979cf0bfdfcc6b3e5ce376ef57e16fb6fb3ea2ed6095f80c" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "libloading" |
||||||
|
version = "0.7.4" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" |
||||||
|
dependencies = [ |
||||||
|
"cfg-if", |
||||||
|
"winapi", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "link-cplusplus" |
||||||
|
version = "1.0.8" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "ecd207c9c713c34f95a097a5b029ac2ce6010530c7b49d7fea24d977dede04f5" |
||||||
|
dependencies = [ |
||||||
|
"cc", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "log" |
||||||
|
version = "0.4.17" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" |
||||||
|
dependencies = [ |
||||||
|
"cfg-if", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "miniz_oxide" |
||||||
|
version = "0.6.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa" |
||||||
|
dependencies = [ |
||||||
|
"adler", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "num-integer" |
||||||
|
version = "0.1.45" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" |
||||||
|
dependencies = [ |
||||||
|
"autocfg", |
||||||
|
"num-traits", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "num-rational" |
||||||
|
version = "0.4.1" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0" |
||||||
|
dependencies = [ |
||||||
|
"autocfg", |
||||||
|
"num-integer", |
||||||
|
"num-traits", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "num-traits" |
||||||
|
version = "0.2.15" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" |
||||||
|
dependencies = [ |
||||||
|
"autocfg", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "once_cell" |
||||||
|
version = "1.17.1" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "pathfinder_geometry" |
||||||
|
version = "0.5.1" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "0b7b7e7b4ea703700ce73ebf128e1450eb69c3a8329199ffbfb9b2a0418e5ad3" |
||||||
|
dependencies = [ |
||||||
|
"log", |
||||||
|
"pathfinder_simd", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "pathfinder_simd" |
||||||
|
version = "0.5.1" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "39fe46acc5503595e5949c17b818714d26fdf9b4920eacf3b2947f0199f4a6ff" |
||||||
|
dependencies = [ |
||||||
|
"rustc_version", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "pest" |
||||||
|
version = "2.5.6" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "8cbd939b234e95d72bc393d51788aec68aeeb5d51e748ca08ff3aad58cb722f7" |
||||||
|
dependencies = [ |
||||||
|
"thiserror", |
||||||
|
"ucd-trie", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "pkg-config" |
||||||
|
version = "0.3.26" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "plotters" |
||||||
|
version = "0.3.4" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "2538b639e642295546c50fcd545198c9d64ee2a38620a628724a3b266d5fbf97" |
||||||
|
dependencies = [ |
||||||
|
"chrono", |
||||||
|
"font-kit", |
||||||
|
"image", |
||||||
|
"lazy_static", |
||||||
|
"num-traits", |
||||||
|
"pathfinder_geometry", |
||||||
|
"plotters-backend", |
||||||
|
"plotters-bitmap", |
||||||
|
"plotters-svg", |
||||||
|
"ttf-parser", |
||||||
|
"wasm-bindgen", |
||||||
|
"web-sys", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "plotters-backend" |
||||||
|
version = "0.3.4" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "193228616381fecdc1224c62e96946dfbc73ff4384fba576e052ff8c1bea8142" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "plotters-bitmap" |
||||||
|
version = "0.3.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "0c4a1f21490a6cf4a84c272ad20bd7844ed99a3178187a4c5ab7f2051295beef" |
||||||
|
dependencies = [ |
||||||
|
"gif", |
||||||
|
"image", |
||||||
|
"plotters-backend", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "plotters-svg" |
||||||
|
version = "0.3.3" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "f9a81d2759aae1dae668f783c308bc5c8ebd191ff4184aaa1b37f65a6ae5a56f" |
||||||
|
dependencies = [ |
||||||
|
"plotters-backend", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "plotterstest" |
||||||
|
version = "0.1.0" |
||||||
|
dependencies = [ |
||||||
|
"plotters", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "png" |
||||||
|
version = "0.17.7" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "5d708eaf860a19b19ce538740d2b4bdeeb8337fa53f7738455e706623ad5c638" |
||||||
|
dependencies = [ |
||||||
|
"bitflags", |
||||||
|
"crc32fast", |
||||||
|
"flate2", |
||||||
|
"miniz_oxide", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "proc-macro2" |
||||||
|
version = "1.0.54" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "e472a104799c74b514a57226160104aa483546de37e839ec50e3c2e41dd87534" |
||||||
|
dependencies = [ |
||||||
|
"unicode-ident", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "quote" |
||||||
|
version = "1.0.26" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc" |
||||||
|
dependencies = [ |
||||||
|
"proc-macro2", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "redox_syscall" |
||||||
|
version = "0.2.16" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" |
||||||
|
dependencies = [ |
||||||
|
"bitflags", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "redox_users" |
||||||
|
version = "0.4.3" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" |
||||||
|
dependencies = [ |
||||||
|
"getrandom", |
||||||
|
"redox_syscall", |
||||||
|
"thiserror", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "rustc_version" |
||||||
|
version = "0.3.3" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "f0dfe2087c51c460008730de8b57e6a320782fbfb312e1f4d520e6c6fae155ee" |
||||||
|
dependencies = [ |
||||||
|
"semver", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "same-file" |
||||||
|
version = "1.0.6" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" |
||||||
|
dependencies = [ |
||||||
|
"winapi-util", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "scratch" |
||||||
|
version = "1.0.5" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "1792db035ce95be60c3f8853017b3999209281c24e2ba5bc8e59bf97a0c590c1" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "semver" |
||||||
|
version = "0.11.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" |
||||||
|
dependencies = [ |
||||||
|
"semver-parser", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "semver-parser" |
||||||
|
version = "0.10.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "00b0bef5b7f9e0df16536d3961cfb6e84331c065b4066afb39768d0e319411f7" |
||||||
|
dependencies = [ |
||||||
|
"pest", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "syn" |
||||||
|
version = "1.0.109" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" |
||||||
|
dependencies = [ |
||||||
|
"proc-macro2", |
||||||
|
"quote", |
||||||
|
"unicode-ident", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "syn" |
||||||
|
version = "2.0.11" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "21e3787bb71465627110e7d87ed4faaa36c1f61042ee67badb9e2ef173accc40" |
||||||
|
dependencies = [ |
||||||
|
"proc-macro2", |
||||||
|
"quote", |
||||||
|
"unicode-ident", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "termcolor" |
||||||
|
version = "1.2.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" |
||||||
|
dependencies = [ |
||||||
|
"winapi-util", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "thiserror" |
||||||
|
version = "1.0.40" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" |
||||||
|
dependencies = [ |
||||||
|
"thiserror-impl", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "thiserror-impl" |
||||||
|
version = "1.0.40" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" |
||||||
|
dependencies = [ |
||||||
|
"proc-macro2", |
||||||
|
"quote", |
||||||
|
"syn 2.0.11", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "time" |
||||||
|
version = "0.1.45" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "1b797afad3f312d1c66a56d11d0316f916356d11bd158fbc6ca6389ff6bf805a" |
||||||
|
dependencies = [ |
||||||
|
"libc", |
||||||
|
"wasi 0.10.0+wasi-snapshot-preview1", |
||||||
|
"winapi", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "ttf-parser" |
||||||
|
version = "0.15.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "7b3e06c9b9d80ed6b745c7159c40b311ad2916abb34a49e9be2653b90db0d8dd" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "ucd-trie" |
||||||
|
version = "0.1.5" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "unicode-ident" |
||||||
|
version = "1.0.8" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "unicode-width" |
||||||
|
version = "0.1.10" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "walkdir" |
||||||
|
version = "2.3.3" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "36df944cda56c7d8d8b7496af378e6b16de9284591917d307c9b4d313c44e698" |
||||||
|
dependencies = [ |
||||||
|
"same-file", |
||||||
|
"winapi-util", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "wasi" |
||||||
|
version = "0.10.0+wasi-snapshot-preview1" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "wasi" |
||||||
|
version = "0.11.0+wasi-snapshot-preview1" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "wasm-bindgen" |
||||||
|
version = "0.2.84" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "31f8dcbc21f30d9b8f2ea926ecb58f6b91192c17e9d33594b3df58b2007ca53b" |
||||||
|
dependencies = [ |
||||||
|
"cfg-if", |
||||||
|
"wasm-bindgen-macro", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "wasm-bindgen-backend" |
||||||
|
version = "0.2.84" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "95ce90fd5bcc06af55a641a86428ee4229e44e07033963a2290a8e241607ccb9" |
||||||
|
dependencies = [ |
||||||
|
"bumpalo", |
||||||
|
"log", |
||||||
|
"once_cell", |
||||||
|
"proc-macro2", |
||||||
|
"quote", |
||||||
|
"syn 1.0.109", |
||||||
|
"wasm-bindgen-shared", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "wasm-bindgen-macro" |
||||||
|
version = "0.2.84" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "4c21f77c0bedc37fd5dc21f897894a5ca01e7bb159884559461862ae90c0b4c5" |
||||||
|
dependencies = [ |
||||||
|
"quote", |
||||||
|
"wasm-bindgen-macro-support", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "wasm-bindgen-macro-support" |
||||||
|
version = "0.2.84" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "2aff81306fcac3c7515ad4e177f521b5c9a15f2b08f4e32d823066102f35a5f6" |
||||||
|
dependencies = [ |
||||||
|
"proc-macro2", |
||||||
|
"quote", |
||||||
|
"syn 1.0.109", |
||||||
|
"wasm-bindgen-backend", |
||||||
|
"wasm-bindgen-shared", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "wasm-bindgen-shared" |
||||||
|
version = "0.2.84" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "0046fef7e28c3804e5e38bfa31ea2a0f73905319b677e57ebe37e49358989b5d" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "web-sys" |
||||||
|
version = "0.3.61" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "e33b99f4b23ba3eec1a53ac264e35a755f00e966e0065077d6027c0f575b0b97" |
||||||
|
dependencies = [ |
||||||
|
"js-sys", |
||||||
|
"wasm-bindgen", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "weezl" |
||||||
|
version = "0.1.7" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "9193164d4de03a926d909d3bc7c30543cecb35400c02114792c2cae20d5e2dbb" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "winapi" |
||||||
|
version = "0.3.9" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" |
||||||
|
dependencies = [ |
||||||
|
"winapi-i686-pc-windows-gnu", |
||||||
|
"winapi-x86_64-pc-windows-gnu", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "winapi-i686-pc-windows-gnu" |
||||||
|
version = "0.4.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "winapi-util" |
||||||
|
version = "0.1.5" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" |
||||||
|
dependencies = [ |
||||||
|
"winapi", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "winapi-x86_64-pc-windows-gnu" |
||||||
|
version = "0.4.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "windows" |
||||||
|
version = "0.46.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "cdacb41e6a96a052c6cb63a144f24900236121c6f63f4f8219fef5977ecb0c25" |
||||||
|
dependencies = [ |
||||||
|
"windows-targets", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "windows-targets" |
||||||
|
version = "0.42.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" |
||||||
|
dependencies = [ |
||||||
|
"windows_aarch64_gnullvm", |
||||||
|
"windows_aarch64_msvc", |
||||||
|
"windows_i686_gnu", |
||||||
|
"windows_i686_msvc", |
||||||
|
"windows_x86_64_gnu", |
||||||
|
"windows_x86_64_gnullvm", |
||||||
|
"windows_x86_64_msvc", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "windows_aarch64_gnullvm" |
||||||
|
version = "0.42.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "windows_aarch64_msvc" |
||||||
|
version = "0.42.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "windows_i686_gnu" |
||||||
|
version = "0.42.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "windows_i686_msvc" |
||||||
|
version = "0.42.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "windows_x86_64_gnu" |
||||||
|
version = "0.42.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "windows_x86_64_gnullvm" |
||||||
|
version = "0.42.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "windows_x86_64_msvc" |
||||||
|
version = "0.42.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "wio" |
||||||
|
version = "0.2.2" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "5d129932f4644ac2396cb456385cbf9e63b5b30c6e8dc4820bdca4eb082037a5" |
||||||
|
dependencies = [ |
||||||
|
"winapi", |
||||||
|
] |
||||||
|
|
||||||
|
[[package]] |
||||||
|
name = "yeslogic-fontconfig-sys" |
||||||
|
version = "3.2.0" |
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||||
|
checksum = "f2bbd69036d397ebbff671b1b8e4d918610c181c5a16073b96f984a38d08c386" |
||||||
|
dependencies = [ |
||||||
|
"const-cstr", |
||||||
|
"dlib", |
||||||
|
"once_cell", |
||||||
|
"pkg-config", |
||||||
|
] |
@ -0,0 +1,9 @@ |
|||||||
|
[package] |
||||||
|
name = "plotterstest" |
||||||
|
version = "0.1.0" |
||||||
|
edition = "2021" |
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html |
||||||
|
|
||||||
|
[dependencies] |
||||||
|
plotters = "0.3.4" |
@ -0,0 +1,3 @@ |
|||||||
|
# PlottersTest |
||||||
|
|
||||||
|
Testing the Plotters library. |
After Width: | Height: | Size: 103 KiB |
After Width: | Height: | Size: 17 KiB |
@ -0,0 +1,249 @@ |
|||||||
|
use plotters::prelude::BitMapBackend; |
||||||
|
use plotters::prelude::ChartBuilder; |
||||||
|
use plotters::prelude::IntoDrawingArea; |
||||||
|
use plotters::prelude::IntoSegmentedCoord; |
||||||
|
use plotters::prelude::Rectangle; |
||||||
|
use plotters::prelude::SegmentValue; |
||||||
|
use plotters::style::text_anchor::HPos; |
||||||
|
use plotters::style::text_anchor::Pos; |
||||||
|
use plotters::style::text_anchor::VPos; |
||||||
|
use plotters::style::Color; |
||||||
|
use plotters::style::FontTransform; |
||||||
|
use plotters::style::IntoFont; |
||||||
|
use plotters::style::TextStyle; |
||||||
|
use plotters::style::RED; |
||||||
|
use plotters::style::WHITE; |
||||||
|
|
||||||
|
fn main() { |
||||||
|
let values = [ |
||||||
|
("channel395_0", 7.94), |
||||||
|
("meshBlockPipe_0", 0.19), |
||||||
|
("3DValve_0", 73.99), |
||||||
|
("forwardStepPar_2", 35.22), |
||||||
|
("pitzDaily_0", 4.75), |
||||||
|
("cavityBox", 18.48), |
||||||
|
("rightAngledDuctFlow_0", 6.00), |
||||||
|
("BernardCells_0", 3.91), |
||||||
|
("shockTube_0", 1.12), |
||||||
|
("aerofoilNACA0012_0", 23.97), |
||||||
|
("backwardFacingStep", 1.15), |
||||||
|
("pollutantPlumePar_0", 14.85), |
||||||
|
("KCS_Fn026Par_0", 143.88), |
||||||
|
("acousticAnalogyPar_0", 99.13), |
||||||
|
("trainTunnelPar_0", 202.25), |
||||||
|
("angledDuctPorous_0", 9.52), |
||||||
|
("wing", 54.87), |
||||||
|
("2DMixer", 6.17), |
||||||
|
("mixerVessel2D_1", 1.85), |
||||||
|
("meshBlockSphere_0", 0.16), |
||||||
|
("twoThrustersPar_0", 59.51), |
||||||
|
("singleChannelPump_3", 91.62), |
||||||
|
("2DcavityBlay_0", 1.01), |
||||||
|
("hotRoom_3", 2.75), |
||||||
|
("Channelf4st_p2_0", 89.80), |
||||||
|
("2DRotatingBox_0", 15.49), |
||||||
|
("2DcavityNielsen_0", 5.67), |
||||||
|
("cylindricalDomainWindPar_3", 18.20), |
||||||
|
("airFoil2D_0", 4.27), |
||||||
|
("channelPorousBafflePressure_0", 2.82), |
||||||
|
("2DCylinderPar_1", 12.63), |
||||||
|
("fuelSloshing_0", 9.65), |
||||||
|
("meshCavityPar_0", 1.28), |
||||||
|
("irvineForest_0", 12.50), |
||||||
|
("meshMotorBikePar_0", 19.19), |
||||||
|
("meshAddLayersToFaceZone_0", 0.26), |
||||||
|
("twoBladeMixerPar_0", 47.00), |
||||||
|
("meshRelativeMotion_0", 6.90), |
||||||
|
("boundaryWallFunctions_2", 0.64), |
||||||
|
("2DCylinderPar_2", 7.61), |
||||||
|
("pitzDaily_4", 3.99), |
||||||
|
("lateralCavity_0", 1.27), |
||||||
|
("rightAngledDuct", 54.09), |
||||||
|
("channelWithLumpedBCs_0", 2.28), |
||||||
|
("interfaceQadd_0", 11.35), |
||||||
|
("porousBlockage_0", 2.11), |
||||||
|
("pitzDailyCoupled_0", 7.01), |
||||||
|
("windAroundBuildingsPar_0", 45.02), |
||||||
|
("irvineForest_1", 12.35), |
||||||
|
("cylindricalPeriodicSectors_0", 0.59), |
||||||
|
("mixerVessel2D_0", 16.89), |
||||||
|
("2DcavityBettsBokhari_0", 12.28), |
||||||
|
("boundaryLaunderSharma_0", 0.78), |
||||||
|
("rotorDisk_0", 39.93), |
||||||
|
("meshGapDetectionPar_0", 0.83), |
||||||
|
("underHoodCarChannel_0", 70.18), |
||||||
|
("hotRoom_0", 6.12), |
||||||
|
("resonantSloshing_0", 0.63), |
||||||
|
("meshFilterPar_0", 1.84), |
||||||
|
("pisoFoamCavity_0", 0.87), |
||||||
|
("boundaryPatchSwitch_0", 66.24), |
||||||
|
("2DManifold", 32.05), |
||||||
|
("meshAirfoilPar_1", 13.19), |
||||||
|
("nacaAirfoil_0", 11.31), |
||||||
|
("meshPumpPar_0", 18.37), |
||||||
|
("leafHeatBalance_0", 11.17), |
||||||
|
("simpleCar_0", 4.59), |
||||||
|
("hotRoom_2", 2.55), |
||||||
|
("porousTubePar_0", 27.20), |
||||||
|
("boundaryWallFunctions_1", 0.64), |
||||||
|
("meshBlockSphere7ProjectedEdges_0", 0.24), |
||||||
|
("injection_0", 49.68), |
||||||
|
("ovoidRadiationPar_0", 38.14), |
||||||
|
("rotatingHeatedDiscPar_0", 71.12), |
||||||
|
("damBreakHydro_0", 1.95), |
||||||
|
("cylindricalDomainWindPar_4", 51.92), |
||||||
|
("jouleHeatingSolidPar_0", 24.75), |
||||||
|
("fallingSphere_0", 85.80), |
||||||
|
("porousDamBreak_0", 124.93), |
||||||
|
("2DCavityTransient_0", 38.32), |
||||||
|
("meshExtrudePipesPar_0", 12.78), |
||||||
|
("planarContraction_0", 12.48), |
||||||
|
("wing", 2.07), |
||||||
|
("rotSector_0", 29.11), |
||||||
|
("meshBlockSphere7_0", 0.24), |
||||||
|
("shadowingTree_0", 14.20), |
||||||
|
("rightAngledDuct", 10.23), |
||||||
|
("hotMovingCone_0", 18.69), |
||||||
|
("windProfilePar_0", 5.48), |
||||||
|
("cylinderAdjustFlowUFixPar_1", 9.64), |
||||||
|
("meshIglooWithFridges_0", 9.15), |
||||||
|
("solidConductionBlock_0", 16.80), |
||||||
|
("3DBox", 16.75), |
||||||
|
("oneraM6Par_0", 49.84), |
||||||
|
("nacaAirfoil_1", 8.89), |
||||||
|
("pitzDailyTransient_0", 16.85), |
||||||
|
("phaseSettling_0", 17.62), |
||||||
|
("meshFlange_0", 7.85), |
||||||
|
("sunDirModel_0", 10.29), |
||||||
|
("brakeDisk_0", 62.53), |
||||||
|
("buildingWithWindowsAndSolarPar_0", 33.42), |
||||||
|
("rae2822Par_0", 10.08), |
||||||
|
("meshAirfoilPar_2", 10.38), |
||||||
|
("cylindricalDomainWindPar_2", 37.49), |
||||||
|
("ovoidRadiationPar_1", 34.31), |
||||||
|
("annularThermalMixer_0", 44.14), |
||||||
|
("meshBox_0", 4.50), |
||||||
|
("ovoidRadiationPar_3", 46.54), |
||||||
|
("T3A_0", 18.72), |
||||||
|
("fallingObject_0", 87.77), |
||||||
|
("forwardStepPar_1", 38.35), |
||||||
|
("electricHeatingElement_0", 38.05), |
||||||
|
("boundaryWallFunctions_0", 1.48), |
||||||
|
("rae2822_0", 27.98), |
||||||
|
("objectFallingToWater_0", 92.84), |
||||||
|
("singleChannelPump_0", 330.78), |
||||||
|
("ovoidRadiationPar_2", 33.22), |
||||||
|
("turbineSiting_0", 36.40), |
||||||
|
("forwardStepPar_0", 28.51), |
||||||
|
("cylinderAdjustFlowPFixPar_1", 9.62), |
||||||
|
("cylinderAdjustFlowPFixPar_0", 10.63), |
||||||
|
("cylinderAdjustFlowUFixPar_0", 10.92), |
||||||
|
("cavityCoupledU_0", 0.79), |
||||||
|
("ovoidHumidity_1", 45.55), |
||||||
|
("singleChannelPump_2", 128.58), |
||||||
|
("naca0012", 81.48), |
||||||
|
("twoRegionAnisoSolid_0", 0.45), |
||||||
|
("meshSnakeRiverCanyon_0", 3.78), |
||||||
|
("2DRotatingBox_1", 16.66), |
||||||
|
("linearSloshingPar_0", 233.94), |
||||||
|
("meshWindTunnelRotationPar_0", 17.15), |
||||||
|
("rightAngledDuct", 9.31), |
||||||
|
("singleChannelPump_1", 100.90), |
||||||
|
("backwardFacingStep", 13.66), |
||||||
|
("cylindricalDomainWindPar_0", 48.59), |
||||||
|
("solidConductionBlock_1", 7.51), |
||||||
|
("rightAngledDuct", 3.54), |
||||||
|
("Ahmed25deg_1", 76.20), |
||||||
|
("reconstructWindProfilePar_0", 5.86), |
||||||
|
("wingMotion2D_0", 19.89), |
||||||
|
("meshAirfoilPar_0", 6.71), |
||||||
|
("2DManifold", 1.80), |
||||||
|
("2DCylinderPar_0", 13.26), |
||||||
|
]; |
||||||
|
|
||||||
|
let root = BitMapBackend::new("cases.png", (1920, 720)).into_drawing_area(); |
||||||
|
root.fill(&WHITE).unwrap(); |
||||||
|
|
||||||
|
let mut chart = ChartBuilder::on(&root) |
||||||
|
.x_label_area_size(100) |
||||||
|
.y_label_area_size(50) |
||||||
|
.margin(5) |
||||||
|
.caption("Cases", ("sans-serif", 40.0)) |
||||||
|
.build_cartesian_2d((0..values.len()).into_segmented(), 0.0f64..300.0f64) |
||||||
|
.unwrap(); |
||||||
|
|
||||||
|
let pos = Pos::new(HPos::Right, VPos::Top); |
||||||
|
let x_label_style = TextStyle::from(("sans-serif", 10).into_font()) |
||||||
|
.pos(pos) |
||||||
|
.transform(FontTransform::Rotate90); |
||||||
|
chart |
||||||
|
.configure_mesh() |
||||||
|
.x_labels(values.len() - 1) |
||||||
|
.x_label_formatter(&|pos| { |
||||||
|
let record: (&str, f64) = match pos { |
||||||
|
SegmentValue::CenterOf(t) => values[*t], |
||||||
|
SegmentValue::Exact(t) => values[*t], |
||||||
|
SegmentValue::Last => *values.last().unwrap(), |
||||||
|
}; |
||||||
|
record.0.to_string() |
||||||
|
}) |
||||||
|
.x_label_style(x_label_style) |
||||||
|
.draw() |
||||||
|
.unwrap(); |
||||||
|
|
||||||
|
chart |
||||||
|
.draw_series( |
||||||
|
(0usize..) |
||||||
|
.zip(values.iter().map(|(_name, value)| *value)) |
||||||
|
.map(|(pos, value)| { |
||||||
|
let x0 = SegmentValue::Exact(pos); |
||||||
|
let x1 = SegmentValue::Exact(pos + 1); |
||||||
|
let mut rect = Rectangle::new([(x0, 0.0), (x1, value)], RED.filled()); |
||||||
|
rect.set_margin(0, 0, 2, 2); |
||||||
|
rect |
||||||
|
}), |
||||||
|
) |
||||||
|
.unwrap(); |
||||||
|
|
||||||
|
root.present().unwrap(); |
||||||
|
} |
||||||
|
|
||||||
|
// use plotters::prelude::*;
|
||||||
|
// const OUT_FILE_NAME: &'static str = "histogram.png";
|
||||||
|
// fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
|
// let root = BitMapBackend::new(OUT_FILE_NAME, (640, 480)).into_drawing_area();
|
||||||
|
|
||||||
|
// root.fill(&WHITE)?;
|
||||||
|
|
||||||
|
// let mut chart = ChartBuilder::on(&root)
|
||||||
|
// .x_label_area_size(35)
|
||||||
|
// .y_label_area_size(40)
|
||||||
|
// .margin(5)
|
||||||
|
// .caption("Histogram Test", ("sans-serif", 50.0))
|
||||||
|
// .build_cartesian_2d((0u32..10u32).into_segmented(), 0u32..10u32)?;
|
||||||
|
|
||||||
|
// chart
|
||||||
|
// .configure_mesh()
|
||||||
|
// .disable_x_mesh()
|
||||||
|
// .bold_line_style(&WHITE.mix(0.3))
|
||||||
|
// .y_desc("Time(secs)")
|
||||||
|
// .x_desc("Case")
|
||||||
|
// .axis_desc_style(("sans-serif", 15))
|
||||||
|
// .draw()?;
|
||||||
|
|
||||||
|
// let data = [
|
||||||
|
// 0u32, 1, 1, 1, 4, 2, 5, 7, 8, 6, 4, 2, 1, 8, 3, 3, 3, 4, 4, 3, 3, 3,
|
||||||
|
// ];
|
||||||
|
|
||||||
|
// chart.draw_series(
|
||||||
|
// Histogram::vertical(&chart)
|
||||||
|
// .style(RED.mix(0.5).filled())
|
||||||
|
// .data(data.iter().map(|x: &u32| (*x, 1))),
|
||||||
|
// )?;
|
||||||
|
|
||||||
|
// // To avoid the IO failure being ignored silently, we manually call the present function
|
||||||
|
// root.present().expect("Unable to write result to file, please make sure 'plotters-doc-data' dir exists under current dir");
|
||||||
|
// println!("Result has been saved to {}", OUT_FILE_NAME);
|
||||||
|
|
||||||
|
// Ok(())
|
||||||
|
// }
|
Loading…
Reference in new issue