How can I change the label values inside the barplot in Julia?

53 Views Asked by At

The script I used is:

using Plots

numbers = [2, 4, 2]
colors_1 = ["white", "red", "white"]
colors_2 = ["white", "yellow", "white"]
legend_text = "Graphic"
letters = ["A", "B", "C"] 

Plots.bar(numbers,
          color = colors_1, 
          background_color_legend = "white",
          foreground_color_axis = "white",
          foreground_color_border = "black",
          foreground_color_grid = "white",
          foreground_color_legend = "black",
          framestyle = :box, 
          framevisible = false,
          label = legend_text, 
          legendfontcolor = "yellow", 
          legendfontsize = 20, 
          linecolor = "white", 
          markercolor = "yellow", 
          markershape = :rect, 
          markershapecolor = "yellow", 
          markerstrokecolor = "yellow",
          markerstrokestyle = ":solid",
          markerstrokesize = 10, 
          seriestype = :bar, 
          series_annotations =  (letters, colors_2),
          size = (1000, 1000), 
          textposition = "auto", 
          xtickfont = "white", 
          ytickfont = "white",
          width = [0, 0, 0])

I try change the label color and size, and set the label with bold and align, but I can only change the color. I need help to change label with the size, bold and align.

0

There are 0 best solutions below