Plots.jl
Plots.jl copied to clipboard
[BUG] xrotation does not work for most backends
Details
The following code shows that label rotation does not work for most backends
using Plots
pyplot()
labels = ["label1", "label2"]
values = [1.0,2.0]
bar(labels, values, xrotation=45)
Backends
This bug occurs on ( insert x
below )
Backend | yes | no | untested |
---|---|---|---|
gr (default) | X | ||
pyplot | X | ||
plotly | X | ||
plotlyjs | X | ||
pgfplotsx | X (would not run) | ||
inspectdr | X |
Versions
Plots.jl version:
Plots v1.6.5
Backend version (]st -m
):
[7b86fcea] ATK_jll v2.34.1+4 [c3fe647b] AbstractAlgebra v0.10.0 [621f4979] AbstractFFTs v0.5.0 [80f14c24] AbstractMCMC v1.0.1 [1520ce14] AbstractTrees v0.3.3 [79e6a3ab] Adapt v2.1.0 [0bf59076] AdvancedHMC v0.2.25 [5b7e9947] AdvancedMH v0.5.1 [b5ca4192] AdvancedVI v0.1.0 [dce04be8] ArgCheck v2.1.0 [ec485272] ArnoldiMethod v0.0.4 [7d9fca2a] Arpack v0.4.0 [68821587] Arpack_jll v3.5.0+3 [4fba245c] ArrayInterface v2.13.0 [4c555306] ArrayLayouts v0.4.8 [bf4720bc] AssetRegistry v0.1.0 [13072b0f] AxisAlgorithms v1.0.0 [39de3d68] AxisArrays v0.4.3 [aae01518] BandedMatrices v0.15.20 [6e4b80f9] BenchmarkTools v0.5.0 [76274a88] Bijectors v0.8.5 [9e28174c] BinDeps v1.0.1 [b99e7846] BinaryProvider v0.5.10 [a134a8b2] BlackBoxOptim v0.5.0 [ad839575] Blink v0.12.3 [8e7c35d0] BlockArrays v0.12.13 [764a87c0] BoundaryValueDiffEq v2.5.0 [6e34b625] Bzip2_jll v1.0.6+4 [fa961155] CEnum v0.4.1 [a9c8d775] CPUTime v1.0.0 [336ed68f] CSV v0.7.7 [159f3aea] Cairo v1.0.5 [83423d85] Cairo_jll v1.16.0+5 [a603d957] CanonicalTraits v0.2.2 [324d7699] CategoricalArrays v0.8.3 [082447d4] ChainRules v0.7.20 [d360d2e6] ChainRulesCore v0.9.10 [aaaa29a8] Clustering v0.14.1 [da1fd8a2] CodeTracking v1.0.3 [35d6a980] ColorSchemes v3.10.0 [3da002f7] ColorTypes v0.10.9 [5ae59095] Colors v0.12.4 [861a8166] Combinatorics v1.0.2 [bbf7d656] CommonSubexpressions v0.3.0 [34da2185] Compat v3.16.0 [e66e0078] CompilerSupportLibraries_jll v0.3.3+0 [8f4d0f93] Conda v1.4.1 [88cd18e8] ConsoleProgressMonitor v0.1.2 [187b0558] ConstructionBase v1.0.0 [d38c429a] Contour v0.5.5 [adafc99b] CpuId v0.2.2 [a8cc5b0e] Crayons v4.0.4 [9a962f9c] DataAPI v1.3.0 [a93c6f00] DataFrames v0.21.7 [864edb3b] DataStructures v0.18.6 [e2d170a0] DataValueInterfaces v1.0.0 [e7dc6d0d] DataValues v0.4.13 [ee1fde0b] Dbus_jll v1.12.16+2 [3f0dd361] DefaultApplication v1.0.0 [bcd4f6db] DelayDiffEq v5.24.2 [39dd38d3] Dierckx v0.4.2 [2b5f629d] DiffEqBase v6.47.1 [459566f4] DiffEqCallbacks v2.14.1 [5a0ffddc] DiffEqFinancial v2.4.0 [c894b116] DiffEqJump v6.10.1 [77a26b50] DiffEqNoiseProcess v5.3.0 [055956cb] DiffEqPhysics v3.6.0 [163ba53b] DiffResults v1.0.2 [b552c78f] DiffRules v1.0.1 [0c46a032] DifferentialEquations v6.15.0 [c619ae07] DimensionalPlotRecipes v1.2.0 [b4f34e82] Distances v0.9.0 [31c24e10] Distributions v0.23.12 [ced4e74d] DistributionsAD v0.6.9 [ffbed154] DocStringExtensions v0.8.3 [366bfd00] DynamicPPL v0.9.1 [5ae413db] EarCut_jll v2.1.5+0 [da5c29d0] EllipsisNotation v0.4.0 [cad2338a] EllipticalSliceSampling v0.2.2 [2e619515] Expat_jll v2.2.7+5 [d4d017d3] ExponentialUtilities v1.8.0 [c87230d0] FFMPEG v0.4.0 [b22a6f82] FFMPEG_jll v4.3.1+2 [7a1cc6ca] FFTW v1.2.4 [f5851436] FFTW_jll v3.3.9+5 [9aa1b823] FastClosures v0.3.2 [1a297f60] FillArrays v0.9.6 [6a86dc24] FiniteDiff v2.7.0 [53c48c17] FixedPointNumbers v0.8.4 [a3f928ae] Fontconfig_jll v2.13.1+13 [59287772] Formatting v0.4.1 [f6369f11] ForwardDiff v0.10.12 [d7e528f0] FreeType2_jll v2.10.1+4 [559328eb] FriBidi_jll v1.0.5+5 [069b7b12] FunctionWrappers v1.1.1 [de31a74c] FunctionalCollections v0.5.0 [38e38edf] GLM v1.3.10 [28b8d3ca] GR v0.52.0 [77ec8976] GTK3_jll v3.24.11+3 [6b9d7cbe] GeneralizedGenerated v0.2.7 [01680d73] GenericSVD v0.3.0 [5c1252a2] GeometryBasics v0.3.1 [4d00f742] GeometryTypes v0.8.3 [78b55507] Gettext_jll v0.20.1+6 [7746bdde] Glib_jll v2.59.0+3 [75302f13] Graphene_jll v1.10.0+2 [a2bd30eb] Graphics v1.0.2 [3b182d85] Graphite2_jll v1.3.13+3 [4c0ca9eb] Gtk v1.1.5 [cd3eb016] HTTP v0.8.19 [2e76f6c2] HarfBuzz_jll v2.6.1+9 [9fb69e20] Hiccup v0.2.2 [a51ab1cf] ICU_jll v67.1.0+1 [7073ff75] IJulia v1.21.3 [7869d1d1] IRTools v0.4.1 [615f187c] IfElse v0.1.0 [d25df0c9] Inflate v0.1.2 [83e8ac13] IniFile v0.5.0 [505f98c9] InplaceOps v0.3.0 [d0351b0e] InspectDR v0.3.9 [1d5cc7b8] IntelOpenMP_jll v2018.0.3+0 [a98d9a8b] Interpolations v0.12.10 [8197267c] IntervalSets v0.5.1 [41ab1584] InvertedIndices v1.0.0 [c8e1da08] IterTools v1.3.0 [42fd0dbc] IterativeSolvers v0.8.4 [82899510] IteratorInterfaceExtensions v1.0.0 [97c1335a] JSExpr v0.5.2 [682c06a0] JSON v0.21.1 [aacddb02] JpegTurbo_jll v2.0.1+2 [aa1ae85d] JuliaInterpreter v0.8.1 [b14d175d] JuliaVariables v0.2.3 [5ab0869b] KernelDensity v0.6.0 [9c9dad79] KissABC v1.3.0 [c1c5ebd0] LAME_jll v3.100.0+2 [dd4b983a] LZO_jll v2.10.0+2 [b964fa9f] LaTeXStrings v1.1.0 [2ee39098] LabelledArrays v1.3.0 [984bce1d] LambertW v0.4.5 [23fbe1c1] Latexify v0.14.0 [50d2b5c4] Lazy v0.14.0 [1d6d02ad] LeftChildRightSiblingTrees v0.1.2 [dd192d2f] LibVPX_jll v1.9.0+0 [42c93a91] Libepoxy_jll v1.5.4+0 [e9f186c6] Libffi_jll v3.2.1+3 [d4300ac3] Libgcrypt_jll v1.8.5+3 [7e76a0d4] Libglvnd_jll v1.3.0+1 [7add5ba3] Libgpg_error_jll v1.36.0+2 [94ce4f54] Libiconv_jll v1.16.0+6 [4b2f31a3] Libmount_jll v2.34.0+2 [6f1fad26] Libtask v0.4.1 [89763e89] Libtiff_jll v4.1.0+1 [38a345b3] Libuuid_jll v2.34.0+6 [093fc24a] LightGraphs v1.3.0 [d3d80556] LineSearches v7.1.0 [6fdf6af0] LogDensityProblems v0.10.3 [e6f89c97] LoggingExtras v0.4.2 [bdcacae8] LoopVectorization v0.8.26 [6f1432cf] LoweredCodeUtils v1.2.0 [c7f686f2] MCMCChains v4.2.1 [d00139f3] METIS_jll v5.1.0+4 [856f044c] MKL_jll v2020.2.254+0 [e80e1ace] MLJModelInterface v0.3.5 [d8e11817] MLStyle v0.4.6 [1914dd2f] MacroTools v0.5.5 [dbb5928d] MappedArrays v0.2.2 [739be429] MbedTLS v1.0.2 [c8ffd9c3] MbedTLS_jll v2.16.8+0 [442fdcdd] Measures v0.3.1 [e1d29d7a] Missings v0.4.4 [961ee093] ModelingToolkit v3.20.0 [46d2c3a1] MuladdMacro v0.2.2 [f9640e96] MultiScaleArrays v1.8.1 [6f286f6a] MultivariateStats v0.7.0 [ffc61752] Mustache v1.0.5 [a975b10e] Mux v0.7.2 [d41bc354] NLSolversBase v7.7.0 [2774e3e8] NLsolve v4.4.1 [872c559c] NNlib v0.7.4 [77ba4419] NaNMath v0.3.4 [71a1bf82] NameResolution v0.1.5 [86f7a689] NamedArrays v0.9.4 [c020b1a1] NaturalSort v1.0.0 [b8a86587] NearestNeighbors v0.4.6 [6c575b1c] NumericIO v0.3.1 [510215fc] Observables v0.3.1 [6fe1bfb0] OffsetArrays v1.2.1 [e7412a2a] Ogg_jll v1.3.4+1 [4536629a] OpenBLAS_jll v0.3.10+0 [458c3c95] OpenSSL_jll v1.1.1+5 [efe28fd5] OpenSpecFun_jll v0.5.3+3 [429524aa] Optim v1.2.0 [91d4177d] Opus_jll v1.3.1+2 [bac558e1] OrderedCollections v1.3.1 [1dea7af3] OrdinaryDiffEq v5.42.8 [2f80f16e] PCRE_jll v8.42.0+3 [90014a1f] PDMats v0.10.1 [8314cec4] PGFPlotsX v1.2.10 [36c8627f] Pango_jll v1.42.4+9 [65888b18] ParameterizedFunctions v5.6.0 [d96e819e] Parameters v0.12.1 [69de0a69] Parsers v1.0.10 [fa939f87] Pidfile v1.2.0 [30392449] Pixman_jll v0.38.4+4 [ccf2f8ad] PlotThemes v2.0.0 [995b91a9] PlotUtils v1.0.6 [a03496cd] PlotlyBase v0.4.1 [f0f68f2c] PlotlyJS v0.14.0 [91a5bcdd] Plots v1.6.5 [e409e4f3] PoissonRandom v0.4.0 [2dfb63ee] PooledArrays v0.5.3 [85a6dd25] PositiveFactorizations v0.2.3 [8162dcfd] PrettyPrint v0.2.0 [08abe8d2] PrettyTables v0.9.1 [33c8b6b6] ProgressLogging v0.1.3 [92933f4c] ProgressMeter v1.3.3 [438e738f] PyCall v1.91.4 [d330b81b] PyPlot v2.9.0 [1fd47b50] QuadGK v2.4.1 [e6cf234a] RandomNumbers v1.4.0 [b3c3ace0] RangeArrays v0.3.2 [c84ed2f1] Ratios v0.4.0 [3cdcf5f2] RecipesBase v1.1.0 [01d81517] RecipesPipeline v0.1.13 [731186ca] RecursiveArrayTools v2.7.0 [f2c3362d] RecursiveFactorization v0.1.4 [189a3867] Reexport v0.2.0 [ae029012] Requires v1.0.3 [ae5879a3] ResettableStacks v1.0.0 [295af30f] Revise v3.1.1 [79098fc4] Rmath v0.6.1 [f50d1b31] Rmath_jll v0.2.2+1 [f2b01f46] Roots v1.0.5 [21efa798] SIMDPirates v0.8.25 [476501e8] SLEEFPirates v0.5.5 [1bc83da4] SafeTestsets v0.0.1 [321657f4] ScientificTypes v1.0.0 [91c51154] SentinelArrays v1.2.15 [1277b4bf] ShiftedArrays v1.0.0 [992d4aef] Showoff v0.3.1 [699a6c99] SimpleTraits v0.9.3 [b85f4697] SoftGlobalScope v1.1.0 [a2af1166] SortingAlgorithms v0.3.1 [47a9eef4] SparseDiffTools v1.10.0 [d4ead438] SpatialIndexing v0.1.2 [276daf66] SpecialFunctions v0.10.3 [90137ffa] StaticArrays v0.12.4 [2913bbd2] StatsBase v0.33.1 [4c63d2b9] StatsFuns v0.9.5 [3eaba693] StatsModels v0.6.14 [f3b207a7] StatsPlots v0.14.13 [9672c7b4] SteadyStateDiffEq v1.5.1 [8188c328] Stheno v0.6.9 [789caeaf] StochasticDiffEq v6.26.0 [09ab397b] StructArrays v0.4.4 [856f2bd8] StructTypes v1.1.0 [bea87d4a] SuiteSparse_jll v5.4.0+9 [c3572dad] Sundials v4.3.0 [fb77eaff] Sundials_jll v5.2.0+1 [d1185830] SymbolicUtils v0.5.1 [ab02a1b2] TableOperations v0.2.1 [3783bdb8] TableTraits v1.0.0 [bd369af6] Tables v1.0.5 [5d786b92] TerminalLoggers v0.1.2 [a759f4b9] TimerOutputs v0.5.6 [9f7883ad] Tracker v0.2.11 [84d833dd] TransformVariables v0.3.10 [8c8f4381] TravelingSalesmanHeuristics v0.3.3 [a2a6695c] TreeViews v0.3.0 [fce5fe82] Turing v0.14.3 [30578b45] URIParser v0.4.1 [3a884ed6] UnPack v1.0.2 [1986cc42] Unitful v1.4.1 [3d5dd08c] VectorizationBase v0.12.33 [81def892] VersionParsing v1.2.0 [19fa3120] VertexSafeGraphs v0.1.2 [a2964d1f] Wayland_jll v1.17.0+3 [2381bf8a] Wayland_protocols_jll v1.18.0+3 [0f1e0344] WebIO v0.8.14 [104b5d7c] WebSockets v1.5.2 [cc8bc4a8] Widgets v0.6.2 [efce3f68] WoodburyMatrices v0.5.2 [02c8fc9c] XML2_jll v2.9.10+2 [aed1982a] XSLT_jll v1.1.33+3 [4f6342f7] Xorg_libX11_jll v1.6.9+3 [0c0b7dd1] Xorg_libXau_jll v1.0.9+3 [3c9796d7] Xorg_libXcomposite_jll v0.4.5+3 [935fb764] Xorg_libXcursor_jll v1.2.0+3 [0aeada51] Xorg_libXdamage_jll v1.1.5+3 [a3789734] Xorg_libXdmcp_jll v1.1.3+3 [1082639a] Xorg_libXext_jll v1.3.4+3 [d091e8ba] Xorg_libXfixes_jll v5.0.3+3 [a51aa0fd] Xorg_libXi_jll v1.7.10+3 [d1454406] Xorg_libXinerama_jll v1.1.4+3 [ec84b674] Xorg_libXrandr_jll v1.5.2+3 [ea2f1a96] Xorg_libXrender_jll v0.9.10+3 [b6f176f1] Xorg_libXtst_jll v1.2.3+3 [14d82f49] Xorg_libpthread_stubs_jll v0.1.0+2 [c7cfdc94] Xorg_libxcb_jll v1.13.0+2 [cc61e674] Xorg_libxkbfile_jll v1.1.0+3 [35661453] Xorg_xkbcomp_jll v1.4.2+3 [33bec58e] Xorg_xkeyboard_config_jll v2.27.0+3 [c5fb5394] Xorg_xtrans_jll v1.4.0+2 [c2297ded] ZMQ v1.2.1 [8f1865be] ZeroMQ_jll v4.3.2+4 [83775a58] Zlib_jll v1.2.11+16 [3161d3a3] Zstd_jll v1.4.5+1 [e88e6eb3] Zygote v0.5.7 [700de1a5] ZygoteRules v0.2.0 [b437f822] adwaita_icon_theme_jll v3.33.92+4 [de012916] at_spi2_atk_jll v2.34.1+3 [0fc3237b] at_spi2_core_jll v2.34.0+3 [da03df04] gdk_pixbuf_jll v2.38.2+8 [059c91fe] hicolor_icon_theme_jll v0.17.0+2 [bf975903] iso_codes_jll v4.3.0+3 [0ac62f75] libass_jll v0.14.0+3 [f638f0a6] libfdk_aac_jll v0.1.6+3 [b53b4c65] libpng_jll v1.6.37+5 [f27f6e37] libvorbis_jll v1.3.6+5 [1270edf5] x264_jll v2020.7.14+1 [dfaa095f] x265_jll v3.0.0+2 [d8fb68d0] xkbcommon_jll v0.9.1+3 [2a0f44e3] Base64 [ade2ca70] Dates [8bb1440f] DelimitedFiles [8ba89e20] Distributed [7b1f6079] FileWatching [9fa8497b] Future [b77e0a4c] InteractiveUtils [76f85450] LibGit2 [8f399da3] Libdl [37e2e46d] LinearAlgebra [56ddb016] Logging [d6f4376e] Markdown [a63ad114] Mmap [44cfe95a] Pkg [de0858da] Printf [3fa0cd96] REPL [9a3f8284] Random [ea8e919c] SHA [9e88b42a] Serialization [1a1011a3] SharedArrays [6462fe0b] Sockets [2f01184e] SparseArrays [10745b16] Statistics [4607b0f0] SuiteSparse [8dfed614] Test [cf7118a7] UUIDs [4ec0a83e] Unicode
Output of versioninfo()
:
Julia Version 1.5.1 Commit 697e782ab8 (2020-08-25 20:08 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-9.0.1 (ORCJIT, haswell) Environment: JULIA_CMDSTAN_HOME = /home/dfish/cmdstan-2.17.1 JULIA_NUM_THREADS = 4 JULIA_EDITOR = "/usr/share/code/code"
Details
The following code shows that label rotation does not work for most backends
using Plots pyplot() labels = ["label1", "label2"] values = [1.0,2.0] bar(labels, values, xrotation=45)
Backends
This bug occurs on ( insert
x
below ) Backend yes no untested gr (default) X pyplot X plotly X plotlyjs X pgfplotsx X (would not run) inspectdr XVersions
Plots.jl version:
Plots v1.6.5
Backend version (
]st -m
):[7b86fcea] ATK_jll v2.34.1+4 [c3fe647b] AbstractAlgebra v0.10.0 [621f4979] AbstractFFTs v0.5.0 [80f14c24] AbstractMCMC v1.0.1 [1520ce14] AbstractTrees v0.3.3 [79e6a3ab] Adapt v2.1.0 [0bf59076] AdvancedHMC v0.2.25 [5b7e9947] AdvancedMH v0.5.1 [b5ca4192] AdvancedVI v0.1.0 [dce04be8] ArgCheck v2.1.0 [ec485272] ArnoldiMethod v0.0.4 [7d9fca2a] Arpack v0.4.0 [68821587] Arpack_jll v3.5.0+3 [4fba245c] ArrayInterface v2.13.0 [4c555306] ArrayLayouts v0.4.8 [bf4720bc] AssetRegistry v0.1.0 [13072b0f] AxisAlgorithms v1.0.0 [39de3d68] AxisArrays v0.4.3 [aae01518] BandedMatrices v0.15.20 [6e4b80f9] BenchmarkTools v0.5.0 [76274a88] Bijectors v0.8.5 [9e28174c] BinDeps v1.0.1 [b99e7846] BinaryProvider v0.5.10 [a134a8b2] BlackBoxOptim v0.5.0 [ad839575] Blink v0.12.3 [8e7c35d0] BlockArrays v0.12.13 [764a87c0] BoundaryValueDiffEq v2.5.0 [6e34b625] Bzip2_jll v1.0.6+4 [fa961155] CEnum v0.4.1 [a9c8d775] CPUTime v1.0.0 [336ed68f] CSV v0.7.7 [159f3aea] Cairo v1.0.5 [83423d85] Cairo_jll v1.16.0+5 [a603d957] CanonicalTraits v0.2.2 [324d7699] CategoricalArrays v0.8.3 [082447d4] ChainRules v0.7.20 [d360d2e6] ChainRulesCore v0.9.10 [aaaa29a8] Clustering v0.14.1 [da1fd8a2] CodeTracking v1.0.3 [35d6a980] ColorSchemes v3.10.0 [3da002f7] ColorTypes v0.10.9 [5ae59095] Colors v0.12.4 [861a8166] Combinatorics v1.0.2 [bbf7d656] CommonSubexpressions v0.3.0 [34da2185] Compat v3.16.0 [e66e0078] CompilerSupportLibraries_jll v0.3.3+0 [8f4d0f93] Conda v1.4.1 [88cd18e8] ConsoleProgressMonitor v0.1.2 [187b0558] ConstructionBase v1.0.0 [d38c429a] Contour v0.5.5 [adafc99b] CpuId v0.2.2 [a8cc5b0e] Crayons v4.0.4 [9a962f9c] DataAPI v1.3.0 [a93c6f00] DataFrames v0.21.7 [864edb3b] DataStructures v0.18.6 [e2d170a0] DataValueInterfaces v1.0.0 [e7dc6d0d] DataValues v0.4.13 [ee1fde0b] Dbus_jll v1.12.16+2 [3f0dd361] DefaultApplication v1.0.0 [bcd4f6db] DelayDiffEq v5.24.2 [39dd38d3] Dierckx v0.4.2 [2b5f629d] DiffEqBase v6.47.1 [459566f4] DiffEqCallbacks v2.14.1 [5a0ffddc] DiffEqFinancial v2.4.0 [c894b116] DiffEqJump v6.10.1 [77a26b50] DiffEqNoiseProcess v5.3.0 [055956cb] DiffEqPhysics v3.6.0 [163ba53b] DiffResults v1.0.2 [b552c78f] DiffRules v1.0.1 [0c46a032] DifferentialEquations v6.15.0 [c619ae07] DimensionalPlotRecipes v1.2.0 [b4f34e82] Distances v0.9.0 [31c24e10] Distributions v0.23.12 [ced4e74d] DistributionsAD v0.6.9 [ffbed154] DocStringExtensions v0.8.3 [366bfd00] DynamicPPL v0.9.1 [5ae413db] EarCut_jll v2.1.5+0 [da5c29d0] EllipsisNotation v0.4.0 [cad2338a] EllipticalSliceSampling v0.2.2 [2e619515] Expat_jll v2.2.7+5 [d4d017d3] ExponentialUtilities v1.8.0 [c87230d0] FFMPEG v0.4.0 [b22a6f82] FFMPEG_jll v4.3.1+2 [7a1cc6ca] FFTW v1.2.4 [f5851436] FFTW_jll v3.3.9+5 [9aa1b823] FastClosures v0.3.2 [1a297f60] FillArrays v0.9.6 [6a86dc24] FiniteDiff v2.7.0 [53c48c17] FixedPointNumbers v0.8.4 [a3f928ae] Fontconfig_jll v2.13.1+13 [59287772] Formatting v0.4.1 [f6369f11] ForwardDiff v0.10.12 [d7e528f0] FreeType2_jll v2.10.1+4 [559328eb] FriBidi_jll v1.0.5+5 [069b7b12] FunctionWrappers v1.1.1 [de31a74c] FunctionalCollections v0.5.0 [38e38edf] GLM v1.3.10 [28b8d3ca] GR v0.52.0 [77ec8976] GTK3_jll v3.24.11+3 [6b9d7cbe] GeneralizedGenerated v0.2.7 [01680d73] GenericSVD v0.3.0 [5c1252a2] GeometryBasics v0.3.1 [4d00f742] GeometryTypes v0.8.3 [78b55507] Gettext_jll v0.20.1+6 [7746bdde] Glib_jll v2.59.0+3 [75302f13] Graphene_jll v1.10.0+2 [a2bd30eb] Graphics v1.0.2 [3b182d85] Graphite2_jll v1.3.13+3 [4c0ca9eb] Gtk v1.1.5 [cd3eb016] HTTP v0.8.19 [2e76f6c2] HarfBuzz_jll v2.6.1+9 [9fb69e20] Hiccup v0.2.2 [a51ab1cf] ICU_jll v67.1.0+1 [7073ff75] IJulia v1.21.3 [7869d1d1] IRTools v0.4.1 [615f187c] IfElse v0.1.0 [d25df0c9] Inflate v0.1.2 [83e8ac13] IniFile v0.5.0 [505f98c9] InplaceOps v0.3.0 [d0351b0e] InspectDR v0.3.9 [1d5cc7b8] IntelOpenMP_jll v2018.0.3+0 [a98d9a8b] Interpolations v0.12.10 [8197267c] IntervalSets v0.5.1 [41ab1584] InvertedIndices v1.0.0 [c8e1da08] IterTools v1.3.0 [42fd0dbc] IterativeSolvers v0.8.4 [82899510] IteratorInterfaceExtensions v1.0.0 [97c1335a] JSExpr v0.5.2 [682c06a0] JSON v0.21.1 [aacddb02] JpegTurbo_jll v2.0.1+2 [aa1ae85d] JuliaInterpreter v0.8.1 [b14d175d] JuliaVariables v0.2.3 [5ab0869b] KernelDensity v0.6.0 [9c9dad79] KissABC v1.3.0 [c1c5ebd0] LAME_jll v3.100.0+2 [dd4b983a] LZO_jll v2.10.0+2 [b964fa9f] LaTeXStrings v1.1.0 [2ee39098] LabelledArrays v1.3.0 [984bce1d] LambertW v0.4.5 [23fbe1c1] Latexify v0.14.0 [50d2b5c4] Lazy v0.14.0 [1d6d02ad] LeftChildRightSiblingTrees v0.1.2 [dd192d2f] LibVPX_jll v1.9.0+0 [42c93a91] Libepoxy_jll v1.5.4+0 [e9f186c6] Libffi_jll v3.2.1+3 [d4300ac3] Libgcrypt_jll v1.8.5+3 [7e76a0d4] Libglvnd_jll v1.3.0+1 [7add5ba3] Libgpg_error_jll v1.36.0+2 [94ce4f54] Libiconv_jll v1.16.0+6 [4b2f31a3] Libmount_jll v2.34.0+2 [6f1fad26] Libtask v0.4.1 [89763e89] Libtiff_jll v4.1.0+1 [38a345b3] Libuuid_jll v2.34.0+6 [093fc24a] LightGraphs v1.3.0 [d3d80556] LineSearches v7.1.0 [6fdf6af0] LogDensityProblems v0.10.3 [e6f89c97] LoggingExtras v0.4.2 [bdcacae8] LoopVectorization v0.8.26 [6f1432cf] LoweredCodeUtils v1.2.0 [c7f686f2] MCMCChains v4.2.1 [d00139f3] METIS_jll v5.1.0+4 [856f044c] MKL_jll v2020.2.254+0 [e80e1ace] MLJModelInterface v0.3.5 [d8e11817] MLStyle v0.4.6 [1914dd2f] MacroTools v0.5.5 [dbb5928d] MappedArrays v0.2.2 [739be429] MbedTLS v1.0.2 [c8ffd9c3] MbedTLS_jll v2.16.8+0 [442fdcdd] Measures v0.3.1 [e1d29d7a] Missings v0.4.4 [961ee093] ModelingToolkit v3.20.0 [46d2c3a1] MuladdMacro v0.2.2 [f9640e96] MultiScaleArrays v1.8.1 [6f286f6a] MultivariateStats v0.7.0 [ffc61752] Mustache v1.0.5 [a975b10e] Mux v0.7.2 [d41bc354] NLSolversBase v7.7.0 [2774e3e8] NLsolve v4.4.1 [872c559c] NNlib v0.7.4 [77ba4419] NaNMath v0.3.4 [71a1bf82] NameResolution v0.1.5 [86f7a689] NamedArrays v0.9.4 [c020b1a1] NaturalSort v1.0.0 [b8a86587] NearestNeighbors v0.4.6 [6c575b1c] NumericIO v0.3.1 [510215fc] Observables v0.3.1 [6fe1bfb0] OffsetArrays v1.2.1 [e7412a2a] Ogg_jll v1.3.4+1 [4536629a] OpenBLAS_jll v0.3.10+0 [458c3c95] OpenSSL_jll v1.1.1+5 [efe28fd5] OpenSpecFun_jll v0.5.3+3 [429524aa] Optim v1.2.0 [91d4177d] Opus_jll v1.3.1+2 [bac558e1] OrderedCollections v1.3.1 [1dea7af3] OrdinaryDiffEq v5.42.8 [2f80f16e] PCRE_jll v8.42.0+3 [90014a1f] PDMats v0.10.1 [8314cec4] PGFPlotsX v1.2.10 [36c8627f] Pango_jll v1.42.4+9 [65888b18] ParameterizedFunctions v5.6.0 [d96e819e] Parameters v0.12.1 [69de0a69] Parsers v1.0.10 [fa939f87] Pidfile v1.2.0 [30392449] Pixman_jll v0.38.4+4 [ccf2f8ad] PlotThemes v2.0.0 [995b91a9] PlotUtils v1.0.6 [a03496cd] PlotlyBase v0.4.1 [f0f68f2c] PlotlyJS v0.14.0 [91a5bcdd] Plots v1.6.5 [e409e4f3] PoissonRandom v0.4.0 [2dfb63ee] PooledArrays v0.5.3 [85a6dd25] PositiveFactorizations v0.2.3 [8162dcfd] PrettyPrint v0.2.0 [08abe8d2] PrettyTables v0.9.1 [33c8b6b6] ProgressLogging v0.1.3 [92933f4c] ProgressMeter v1.3.3 [438e738f] PyCall v1.91.4 [d330b81b] PyPlot v2.9.0 [1fd47b50] QuadGK v2.4.1 [e6cf234a] RandomNumbers v1.4.0 [b3c3ace0] RangeArrays v0.3.2 [c84ed2f1] Ratios v0.4.0 [3cdcf5f2] RecipesBase v1.1.0 [01d81517] RecipesPipeline v0.1.13 [731186ca] RecursiveArrayTools v2.7.0 [f2c3362d] RecursiveFactorization v0.1.4 [189a3867] Reexport v0.2.0 [ae029012] Requires v1.0.3 [ae5879a3] ResettableStacks v1.0.0 [295af30f] Revise v3.1.1 [79098fc4] Rmath v0.6.1 [f50d1b31] Rmath_jll v0.2.2+1 [f2b01f46] Roots v1.0.5 [21efa798] SIMDPirates v0.8.25 [476501e8] SLEEFPirates v0.5.5 [1bc83da4] SafeTestsets v0.0.1 [321657f4] ScientificTypes v1.0.0 [91c51154] SentinelArrays v1.2.15 [1277b4bf] ShiftedArrays v1.0.0 [992d4aef] Showoff v0.3.1 [699a6c99] SimpleTraits v0.9.3 [b85f4697] SoftGlobalScope v1.1.0 [a2af1166] SortingAlgorithms v0.3.1 [47a9eef4] SparseDiffTools v1.10.0 [d4ead438] SpatialIndexing v0.1.2 [276daf66] SpecialFunctions v0.10.3 [90137ffa] StaticArrays v0.12.4 [2913bbd2] StatsBase v0.33.1 [4c63d2b9] StatsFuns v0.9.5 [3eaba693] StatsModels v0.6.14 [f3b207a7] StatsPlots v0.14.13 [9672c7b4] SteadyStateDiffEq v1.5.1 [8188c328] Stheno v0.6.9 [789caeaf] StochasticDiffEq v6.26.0 [09ab397b] StructArrays v0.4.4 [856f2bd8] StructTypes v1.1.0 [bea87d4a] SuiteSparse_jll v5.4.0+9 [c3572dad] Sundials v4.3.0 [fb77eaff] Sundials_jll v5.2.0+1 [d1185830] SymbolicUtils v0.5.1 [ab02a1b2] TableOperations v0.2.1 [3783bdb8] TableTraits v1.0.0 [bd369af6] Tables v1.0.5 [5d786b92] TerminalLoggers v0.1.2 [a759f4b9] TimerOutputs v0.5.6 [9f7883ad] Tracker v0.2.11 [84d833dd] TransformVariables v0.3.10 [8c8f4381] TravelingSalesmanHeuristics v0.3.3 [a2a6695c] TreeViews v0.3.0 [fce5fe82] Turing v0.14.3 [30578b45] URIParser v0.4.1 [3a884ed6] UnPack v1.0.2 [1986cc42] Unitful v1.4.1 [3d5dd08c] VectorizationBase v0.12.33 [81def892] VersionParsing v1.2.0 [19fa3120] VertexSafeGraphs v0.1.2 [a2964d1f] Wayland_jll v1.17.0+3 [2381bf8a] Wayland_protocols_jll v1.18.0+3 [0f1e0344] WebIO v0.8.14 [104b5d7c] WebSockets v1.5.2 [cc8bc4a8] Widgets v0.6.2 [efce3f68] WoodburyMatrices v0.5.2 [02c8fc9c] XML2_jll v2.9.10+2 [aed1982a] XSLT_jll v1.1.33+3 [4f6342f7] Xorg_libX11_jll v1.6.9+3 [0c0b7dd1] Xorg_libXau_jll v1.0.9+3 [3c9796d7] Xorg_libXcomposite_jll v0.4.5+3 [935fb764] Xorg_libXcursor_jll v1.2.0+3 [0aeada51] Xorg_libXdamage_jll v1.1.5+3 [a3789734] Xorg_libXdmcp_jll v1.1.3+3 [1082639a] Xorg_libXext_jll v1.3.4+3 [d091e8ba] Xorg_libXfixes_jll v5.0.3+3 [a51aa0fd] Xorg_libXi_jll v1.7.10+3 [d1454406] Xorg_libXinerama_jll v1.1.4+3 [ec84b674] Xorg_libXrandr_jll v1.5.2+3 [ea2f1a96] Xorg_libXrender_jll v0.9.10+3 [b6f176f1] Xorg_libXtst_jll v1.2.3+3 [14d82f49] Xorg_libpthread_stubs_jll v0.1.0+2 [c7cfdc94] Xorg_libxcb_jll v1.13.0+2 [cc61e674] Xorg_libxkbfile_jll v1.1.0+3 [35661453] Xorg_xkbcomp_jll v1.4.2+3 [33bec58e] Xorg_xkeyboard_config_jll v2.27.0+3 [c5fb5394] Xorg_xtrans_jll v1.4.0+2 [c2297ded] ZMQ v1.2.1 [8f1865be] ZeroMQ_jll v4.3.2+4 [83775a58] Zlib_jll v1.2.11+16 [3161d3a3] Zstd_jll v1.4.5+1 [e88e6eb3] Zygote v0.5.7 [700de1a5] ZygoteRules v0.2.0 [b437f822] adwaita_icon_theme_jll v3.33.92+4 [de012916] at_spi2_atk_jll v2.34.1+3 [0fc3237b] at_spi2_core_jll v2.34.0+3 [da03df04] gdk_pixbuf_jll v2.38.2+8 [059c91fe] hicolor_icon_theme_jll v0.17.0+2 [bf975903] iso_codes_jll v4.3.0+3 [0ac62f75] libass_jll v0.14.0+3 [f638f0a6] libfdk_aac_jll v0.1.6+3 [b53b4c65] libpng_jll v1.6.37+5 [f27f6e37] libvorbis_jll v1.3.6+5 [1270edf5] x264_jll v2020.7.14+1 [dfaa095f] x265_jll v3.0.0+2 [d8fb68d0] xkbcommon_jll v0.9.1+3 [2a0f44e3] Base64 [ade2ca70] Dates [8bb1440f] DelimitedFiles [8ba89e20] Distributed [7b1f6079] FileWatching [9fa8497b] Future [b77e0a4c] InteractiveUtils [76f85450] LibGit2 [8f399da3] Libdl [37e2e46d] LinearAlgebra [56ddb016] Logging [d6f4376e] Markdown [a63ad114] Mmap [44cfe95a] Pkg [de0858da] Printf [3fa0cd96] REPL [9a3f8284] Random [ea8e919c] SHA [9e88b42a] Serialization [1a1011a3] SharedArrays [6462fe0b] Sockets [2f01184e] SparseArrays [10745b16] Statistics [4607b0f0] SuiteSparse [8dfed614] Test [cf7118a7] UUIDs [4ec0a83e] Unicode
Output of
versioninfo()
:Julia Version 1.5.1 Commit 697e782ab8 (2020-08-25 20:08 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-9.0.1 (ORCJIT, haswell) Environment: JULIA_CMDSTAN_HOME = /home/dfish/cmdstan-2.17.1 JULIA_NUM_THREADS = 4 JULIA_EDITOR = "/usr/share/code/code"
Backend | yes | no | untested |
---|---|---|---|
gr (default) | X | ||
pyplot | X | ||
plotly | X | ||
plotlyjs | X | ||
pgfplotsx | X (would not run) | ||
inspectdr | X |
Please, can someone fix it?
I don't understand the table, with issues, if X in yes
column, it should mean that issue occurs for given environment, right? Because the table at the top is different but reports differently for pyplot
and it does not work using it. For me only in gr()
.
xrotation
works for me while using gr()
and does not work for pyplot()
and it has been quite a time it is not working.
[91a5bcdd] Plots v1.10.2
Hi @luboshanus,
I am the original poster. I can confirm that xrotation only works with gr()
. It appears to be broken on all other backends. Currently I am using Julia 1.6 cr2
and Plots v1.11.0
.
I do not know how the other poster obtained different results.
Hi @itsdfish ,
Thanks for the quick comment! Also, I still do not understand the table, shouldn't it be inverse the x
in columns?
Still, my logic might be wrong and I would be glad to understand the table but it states:
This bug occurs on ( insert x below )
.
and then gr()
= yes, so, I would assume that the bug is only while gr()
is used but according to what you say it is otherwise.... Sorry for the long message in issue things but maybe it appears in all posts and there is a rule that it is inverse....
No problem and my apologies. I misread the template and produced the wrong table. Here is the corrected table:
Backend | yes | no | untested |
---|---|---|---|
gr (default) | X | ||
pyplot | X | ||
plotly | X | ||
plotlyjs | X | ||
pgfplotsx | does not run | ||
inspectdr | X |
So I think our results agree now.
I was looking for a solution to rotate the labels on the x axis ticks and can confirm this also doesn't work for me after upgrading to Julia 1.6.0 (I never tried it in Julia <1.6). I will say, for those looking for an alternate solution, PyPlot has the xtickfontrotation
keyword which allows you to rotate the labels on the x axis ticks. Hopefully this helps someone.
This is still a problem for pyplot
so far as I can tell on julia 1.7.3
The rotation is not working for me either. I am using the following versions:
(@v1.7) pkg> st Plots PyPlot
Status `~/.julia/environments/v1.7/Project.toml`
[91a5bcdd] Plots v1.29.1
[d330b81b] PyPlot v2.10.0
I am unable to reopen the issue. Can someone else please reopen?
I can confirm too that the option xtickfontrotation
suggested by @dannys4 works on
(@v1.7) pkg> st PyPlot Plots
Status `~/.julia/environments/v1.7/Project.toml`
[91a5bcdd] Plots v1.29.1
[d330b81b] PyPlot v2.10.0
The rotation parameter outputs cutting the labels, but if you adjust the margins it will work.
That's the way that I fixed mine
On Sat, Jun 11, 2022, 5:44 PM Jeremy Van Cleve @.***> wrote:
I can confirm too that the option xtickfontrotation suggested by @dannys4 https://github.com/dannys4 works on
@.***) pkg> st PyPlot Plots Status
~/.julia/environments/v1.7/Project.toml
[91a5bcdd] Plots v1.29.1 [d330b81b] PyPlot v2.10.0— Reply to this email directly, view it on GitHub https://github.com/JuliaPlots/Plots.jl/issues/2992#issuecomment-1152994709, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMMFD5RUDZNBPZXYARAXY73VOT3DHANCNFSM4RTWLDOA . You are receiving this because you commented.Message ID: <JuliaPlots/Plots .@.***>
Good to know. xtickfontrotation
works for me too. This might be a situation in which the documentation can be clarified. Several places in the documentation refer to xrotation
.