# Plots.jl plotly heatmap labels

**URL:** <https://discourse.julialang.org/t/plots-jl-plotly-heatmap-labels/106252>\
**Category:** Visualization\
**Tags:** dates, plots, plotlyjs\
**Created:** [November 15, 2023, 8:44am UTC](https://discourse.julialang.org/t/plots-jl-plotly-heatmap-labels/106252 "2023-11-15T08:44:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [November 15, 2023, 9:54pm UTC](https://discourse.julialang.org/t/plots-jl-plotly-heatmap-labels/106252/2 "2023-11-15T21:54:11Z")

</div>

In Plots.jl, you could try the following code:

```julia
using Dates, Plots; plotlyjs()

start_date = DateTime(2021, 1, 1)
rr = rand(100,36)
xaxis = start_date:Dates.Month(1):start_date+Dates.Month(36)
DateTick = Dates.format.(xaxis, "yyyy-mm")
x = 1:length(xaxis)
yaxis = 15:115
heatmap(x, yaxis, rr, ticks=:native, xticks=(x,DateTick), xtickfontsize=5, xrot=45)

```

 ![Plots_plotlyjs_heatmap_dates_zoom_ticks_native](https://global.discourse-cdn.com/julialang/original/3X/a/0/a0ec163c21c017ab4ec783594a4b20fc5a9e57d4.png)

---

_[View the full topic](https://discourse.julialang.org/t/plots-jl-plotly-heatmap-labels/106252)._
