Skip to content

Problem with Color Bar and Bar Plot [BUG] #2887

@Dsantra92

Description

@Dsantra92

Details

I would like to mention 2 bugs.

1.Using bar() trims out the first and the last characters of the label string.

x = ["car", "bike", "bus", "truck", "bicycle"]
y = [10, 5, 8, 4, 2]
bar(x, y,leg =false) 

The label outputs are trimmed as "a", "ik","u" and so on.

2.Colorbar in heatmap(),surface(),contour() etc

X = [(1/(x+y)) for x in 1:5 ,y in 1:7]
heatmap(X,colorbar = :true)

The values along color-bar values are cropped out.Sometimes it shows just a decimal or a number after the decimal not the full number

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default)
pyplot
plotly x
plotlyjs
pgfplotsx
inspectdr

Versions

Plots.jl version: 1.5.7

Backend version (]st -m): 2.9.0

Output of versioninfo():

Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, znver1)

Environment : Jupyter Notebook and Google Colab ,IJulia version 1.21.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions