# Latest

**URL:** https://discourse.julialang.org/latest.md?page=101

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 102

---

## [Makie recipe and cycle colour](https://discourse.julialang.org/t/makie-recipe-and-cycle-colour/132910)

<div class="topic-metadata">

**Author:** [@matthiasbaitsch](https://discourse.julialang.org/u/matthiasbaitsch)\
**Replies:** 11\
**Last updated:** [October 6, 2025, 3:05pm UTC](https://discourse.julialang.org/t/makie-recipe-and-cycle-colour/132910 "2025-10-06T15:05:37Z")

</div>

What is a good way to cycle through plot attributes in a recipe? In the example below, the first plot should use the same colours as second. using Makie using CairoMakie # Recipe @recipe TestPlot begin end function Ma…

---

## [Using environment variables with Plots](https://discourse.julialang.org/t/using-environment-variables-with-plots/132842)

<div class="topic-metadata">

**Author:** [@J-Holger](https://discourse.julialang.org/u/J-Holger)\
**Replies:** 2\
**Last updated:** [October 6, 2025, 12:39pm UTC](https://discourse.julialang.org/t/using-environment-variables-with-plots/132842 "2025-10-06T12:39:07Z")

</div>

Hi! I’m using the Plots (v1.41.1) package to create and save figures in Julia. Currently, I’m using PlotlyJS as backend and everything works well. The problem is that my application does not have access to internet so I…

---

## [Assigning to a view of an array](https://discourse.julialang.org/t/assigning-to-a-view-of-an-array/132869)

<div class="topic-metadata">

**Author:** [@DanimirD](https://discourse.julialang.org/u/DanimirD)\
**Replies:** 37\
**Last updated:** [October 6, 2025, 11:55am UTC](https://discourse.julialang.org/t/assigning-to-a-view-of-an-array/132869 "2025-10-06T11:55:24Z")

</div>

The purpose of creating a view from an array is to avoid a copy. However, a view cannot be assigned to. julia\> X = rand(3,3) 3×3 Matrix{Float64}: 0.135318 0.958828 0.0860895 0.715183 0.136236 0.542946 0.513489 0.9…

---

## [Is it defined behavior to modify \`iter\` while \`for\`-looping over it?](https://discourse.julialang.org/t/is-it-defined-behavior-to-modify-iter-while-for-looping-over-it/132477)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 32\
**Last updated:** [October 6, 2025, 11:15am UTC](https://discourse.julialang.org/t/is-it-defined-behavior-to-modify-iter-while-for-looping-over-it/132477 "2025-10-06T11:15:32Z")

</div>

Since the docstring of for is very concise, I cannot fathom one thing—as the title suggests. for i = iter # body end I have learned that i is local and different among passes. For example, iter = 1:3, then we have…

---

## [\[ANN\] New release of OptimalControl.jl](https://discourse.julialang.org/t/ann-new-release-of-optimalcontrol-jl/132764)

<div class="topic-metadata">

**Author:** [@control-toolbox](https://discourse.julialang.org/u/control-toolbox)\
**Replies:** 5\
**Last updated:** [October 6, 2025, 10:55am UTC](https://discourse.julialang.org/t/ann-new-release-of-optimalcontrol-jl/132764 "2025-10-06T10:55:49Z")

</div>

It is a pleasure to announce the new release of OptimalControl.jl (v1.1). Intended to solve optimal control problems on ODEs, the package features: a friendly DSL both direct (optimisation) and indirect (aka. shooting)…

---

## [Add Random.seed!(0) with block to standard library](https://discourse.julialang.org/t/add-random-seed-0-with-block-to-standard-library/132908)

<div class="topic-metadata">

**Author:** [@Alex1](https://discourse.julialang.org/u/Alex1)\
**Replies:** 6\
**Last updated:** [October 6, 2025, 9:48am UTC](https://discourse.julialang.org/t/add-random-seed-0-with-block-to-standard-library/132908 "2025-10-06T09:48:38Z")

</div>

Useful in writing deterministic tests @testset "SkewT fit\_mle" begin Random.seed!(0) do x = rand(SkewT(1.0, 2.0, 5.0, 0.5), 10\_000); (; μ, σ, ν, λ) = fit\_mle(SkewT, x) @test \[μ, σ, ν, λ\] ≈ \[1.0, 2.0, 5.0, …

---

## [In Plots.jl \`heatmap\`s, how do I set the colorbar ticks?](https://discourse.julialang.org/t/in-plots-jl-heatmap-s-how-do-i-set-the-colorbar-ticks/132894)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [October 6, 2025, 7:48am UTC](https://discourse.julialang.org/t/in-plots-jl-heatmap-s-how-do-i-set-the-colorbar-ticks/132894 "2025-10-06T07:48:48Z")

</div>

if I create a heatmap: using Plots heatmap(rand(5,5); clim = (0.0, 1.0)) How do I set the ticks on the colorbar? I.e. if I would have wanted it to be \[0.0, 0.25, 0.5, 0.75, 1.0\]?

---

## [How do I put the heatmap colorbar at the top of the plot?](https://discourse.julialang.org/t/how-do-i-put-the-heatmap-colorbar-at-the-top-of-the-plot/132893)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [October 6, 2025, 7:48am UTC](https://discourse.julialang.org/t/how-do-i-put-the-heatmap-colorbar-at-the-top-of-the-plot/132893 "2025-10-06T07:48:38Z")

</div>

using the Plots package. I looked here: Cannot change colorbar position, which does suggest that heatmap(rand(5,5); cb=:top) should work, however, it does not. Might be that it requires the pgfplot backend, but seems …

---

## [Julia Type system manual confusions](https://discourse.julialang.org/t/julia-type-system-manual-confusions/132583)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 38\
**Last updated:** [October 6, 2025, 6:51am UTC](https://discourse.julialang.org/t/julia-type-system-manual-confusions/132583 "2025-10-06T06:51:31Z")

</div>

What are now latest best learning resources of Julia type system? I am Physics student. I have been using Julia since last 2 years. I have read this Types introduction section many times but still i don’t grasp it compl…

---

## [Dispatch.jl - A Julia package that makes function dispatching across modules simple, flexible, and efficient](https://discourse.julialang.org/t/dispatch-jl-a-julia-package-that-makes-function-dispatching-across-modules-simple-flexible-and-efficient/132890)

<div class="topic-metadata">

**Author:** [@dmgcodevil](https://discourse.julialang.org/u/dmgcodevil)\
**Replies:** 2\
**Last updated:** [October 6, 2025, 6:17am UTC](https://discourse.julialang.org/t/dispatch-jl-a-julia-package-that-makes-function-dispatching-across-modules-simple-flexible-and-efficient/132890 "2025-10-06T06:17:26Z")

</div>

dispatch-jl Dispatch.jl is a Julia package that provides macros for dynamic and static dispatch of function calls based on the types of the input arguments. This can be useful in scenarios where multiple modules define f…

---

## [TextAssociations.jl: Bringing Julia to the Digital Humanities and Social Sciences](https://discourse.julialang.org/t/textassociations-jl-bringing-julia-to-the-digital-humanities-and-social-sciences/132888)

<div class="topic-metadata">

**Author:** [@Alex\_Tantos](https://discourse.julialang.org/u/Alex_Tantos)\
**Replies:** 2\
**Last updated:** [October 5, 2025, 5:23pm UTC](https://discourse.julialang.org/t/textassociations-jl-bringing-julia-to-the-digital-humanities-and-social-sciences/132888 "2025-10-05T17:23:02Z")

</div>

Εxcited to share TextAssociations.jl, a new Julia package designed for studying how words connect and co-occur in texts and corpora. It brings together many well-known and lesser-known association measures, along with to…

---

## [Associated legendre polynomials](https://discourse.julialang.org/t/associated-legendre-polynomials/132892)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 5\
**Last updated:** [October 6, 2025, 6:12am UTC](https://discourse.julialang.org/t/associated-legendre-polynomials/132892 "2025-10-06T06:12:05Z")

</div>

Hi, Is there a way to get the analytical expression of associated legendre polynomials in term of cos(theta) (see here) ? Thank you for your help!

---

## [\[ANN\] StippleMakie compat with new Makie version and new demo](https://discourse.julialang.org/t/ann-stipplemakie-compat-with-new-makie-version-and-new-demo/132896)

<div class="topic-metadata">

**Author:** [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Replies:** 0\
**Last updated:** [October 5, 2025, 10:19pm UTC](https://discourse.julialang.org/t/ann-stipplemakie-compat-with-new-makie-version-and-new-demo/132896 "2025-10-05T22:19:58Z")

</div>

Happy to announce that I have updated StippeMakie to work with the latest version of WGLMakie and that I have done some finetuning on proxy usage and README. Embedding Makie figures in a GenieFramework/Stipple app with …

---

## [How can the weight of package dependencies be determined?](https://discourse.julialang.org/t/how-can-the-weight-of-package-dependencies-be-determined/132876)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 8\
**Last updated:** [October 5, 2025, 9:54pm UTC](https://discourse.julialang.org/t/how-can-the-weight-of-package-dependencies-be-determined/132876 "2025-10-05T21:54:08Z")

</div>

I often hear people talking about ‘heavy’ and ‘light’ package dependencies. How is this determined? Is the weight of each package determined by its size within the folder: “.julia/compiled/v1.11” ? ▶ For example:

---

## [Parameterization of a set of constraints](https://discourse.julialang.org/t/parameterization-of-a-set-of-constraints/132885)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 8\
**Last updated:** [October 5, 2025, 9:21pm UTC](https://discourse.julialang.org/t/parameterization-of-a-set-of-constraints/132885 "2025-10-05T21:21:42Z")

</div>

I would like, if possible, to parameterize the following set of constraints. I would like to replace the fixed values ​​4 in 4:ng; 3 in g-3:g; and 1 in … \<=1 with parameters external to the function that define the mo…

---

## [How to manage and reuse FFTW.jl plans for multiple input sizes in Julia?](https://discourse.julialang.org/t/how-to-manage-and-reuse-fftw-jl-plans-for-multiple-input-sizes-in-julia/132877)

<div class="topic-metadata">

**Author:** [@DN\_Silence](https://discourse.julialang.org/u/DN_Silence)\
**Replies:** 5\
**Last updated:** [October 5, 2025, 4:31pm UTC](https://discourse.julialang.org/t/how-to-manage-and-reuse-fftw-jl-plans-for-multiple-input-sizes-in-julia/132877 "2025-10-05T16:31:15Z")

</div>

I am working on a Julia project where I need to perform FFTs on inputs of different sizes(and eltype, fft/ifft, in/out place). FFTW.jl allows creating plans with plan\_fft or plan\_fft!, which can significantly speed up re…

---

## [Strange behaviour when copying into an element of a vector of matrices](https://discourse.julialang.org/t/strange-behaviour-when-copying-into-an-element-of-a-vector-of-matrices/132889)

<div class="topic-metadata">

**Author:** [@andreasvarga](https://discourse.julialang.org/u/andreasvarga)\
**Replies:** 4\
**Last updated:** [October 5, 2025, 3:22pm UTC](https://discourse.julialang.org/t/strange-behaviour-when-copying-into-an-element-of-a-vector-of-matrices/132889 "2025-10-05T15:22:35Z")

</div>

The following is a statement within a for loop of a function, where I have an array of matrices Zd with three 1x1 matrix elements all equal to \[1.0\] and I would like to modify Zd\[2\] using the following command (exact co…

---

## [Difficulty understanding JuliaRegistrator instructions on breaking changes](https://discourse.julialang.org/t/difficulty-understanding-juliaregistrator-instructions-on-breaking-changes/132886)

<div class="topic-metadata">

**Author:** [@dankelley](https://discourse.julialang.org/u/dankelley)\
**Replies:** 4\
**Last updated:** [October 5, 2025, 2:06pm UTC](https://discourse.julialang.org/t/difficulty-understanding-juliaregistrator-instructions-on-breaking-changes/132886 "2025-10-05T14:06:14Z")

</div>

I am having difficulty understanding the TagBot github action for Julia releases. (This is for my package at GitHub - dankelley/OceanAnalysis.jl: Julia code for oceanographic analysis). I added Appendix 1 (below) as a …

---

## [Differentiation of incomplete Beta function](https://discourse.julialang.org/t/differentiation-of-incomplete-beta-function/49675)

<div class="topic-metadata">

**Author:** [@arzwa](https://discourse.julialang.org/u/arzwa)\
**Replies:** 4\
**Last updated:** [October 5, 2025, 12:55pm UTC](https://discourse.julialang.org/t/differentiation-of-incomplete-beta-function/49675 "2025-10-05T12:55:22Z")

</div>

First, to give some context: my use case is equivalent to the following contrived example, in which I would like to define a (Turing.jl) probabilistic program that uses a discretized Beta mixture model. @model themodel(…

---

## [Plot several shapes as part of a single series using Plots.jl](https://discourse.julialang.org/t/plot-several-shapes-as-part-of-a-single-series-using-plots-jl/132878)

<div class="topic-metadata">

**Author:** [@alan](https://discourse.julialang.org/u/alan)\
**Replies:** 2\
**Last updated:** [October 5, 2025, 12:17pm UTC](https://discourse.julialang.org/t/plot-several-shapes-as-part-of-a-single-series-using-plots-jl/132878 "2025-10-05T12:17:15Z")

</div>

I’m trying to plot several rectangles of the same color, and I want them to show up as a single entry in the legend. But my code produces a separate legend entry for each rectangle. Suggestions? using Plots function re…

---

## [Error testing CUDA](https://discourse.julialang.org/t/error-testing-cuda/132887)

<div class="topic-metadata">

**Author:** [@dwHe123](https://discourse.julialang.org/u/dwHe123)\
**Replies:** 0\
**Last updated:** [October 5, 2025, 12:13pm UTC](https://discourse.julialang.org/t/error-testing-cuda/132887 "2025-10-05T12:13:40Z")

</div>

Hello everyone I encountered a problem while testing CUDA.jl, and the same issue persists after some attempts to install different versions of CUDA.jl.I don’t know why this happen. I connect to a Linux server (Ubuntu …

---

## [How do you use RadixSort in the Julia v1.9?](https://discourse.julialang.org/t/how-do-you-use-radixsort-in-the-julia-v1-9/95954)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [October 5, 2025, 12:03pm UTC](https://discourse.julialang.org/t/how-do-you-use-radixsort-in-the-julia-v1-9/95954 "2025-10-05T12:03:42Z")

</div>

using Base.Sort: RadixSort; x = rand(100) sort(x, alg=RadixSort()) This should sort x but is giving me the error and I don’t understand the issue here. Also, the doc doesn’t currently list RadixSort yet Sorting and Rela…

---

## [Nested do blocks?](https://discourse.julialang.org/t/nested-do-blocks/132883)

<div class="topic-metadata">

**Author:** [@mraic1](https://discourse.julialang.org/u/mraic1)\
**Replies:** 2\
**Last updated:** [October 5, 2025, 10:17am UTC](https://discourse.julialang.org/t/nested-do-blocks/132883 "2025-10-05T10:17:56Z")

</div>

Dear developers, While learning Julia, one of the constructions that I found particularly marvellous is the do block. As comprehensions and where expressions can be nested, wouldn’t it make sense also to allow it for th…

---

## [Cannot understand the results from sizeof and @allocated](https://discourse.julialang.org/t/cannot-understand-the-results-from-sizeof-and-allocated/132872)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 5\
**Last updated:** [October 5, 2025, 7:57am UTC](https://discourse.julialang.org/t/cannot-understand-the-results-from-sizeof-and-allocated/132872 "2025-10-05T07:57:18Z")

</div>

I know that an Int64 number requires 64 bits = 8 bytes. But what about a Int64\[2\]? And, why does a naive + requires 64 bytes? I thought 64 bits was enough, in an exaggerated sense. (I’m not from computer science.) jul…

---

## [Error when specifying trace level with NonlinearSolve.jl](https://discourse.julialang.org/t/error-when-specifying-trace-level-with-nonlinearsolve-jl/132844)

<div class="topic-metadata">

**Author:** [@rpetit](https://discourse.julialang.org/u/rpetit)\
**Replies:** 3\
**Last updated:** [October 5, 2025, 3:17am UTC](https://discourse.julialang.org/t/error-when-specifying-trace-level-with-nonlinearsolve-jl/132844 "2025-10-05T03:17:37Z")

</div>

Hi, I got an error with NonlinearSolve.jl v4.12.0 when specifying a trace level different than TraceMinimal(). The following code is taken from the diagnostics API page of the documentation. using NonlinearSolve funct…

---

## [Using straight font with Makie and LaTeXStrings](https://discourse.julialang.org/t/using-straight-font-with-makie-and-latexstrings/132832)

<div class="topic-metadata">

**Author:** [@tduretz](https://discourse.julialang.org/u/tduretz)\
**Replies:** 11\
**Last updated:** [October 4, 2025, 9:09pm UTC](https://discourse.julialang.org/t/using-straight-font-with-makie-and-latexstrings/132832 "2025-10-04T21:09:32Z")

</div>

Hi everyone, I am currently having issues because I’m being asked to produce a figure in which all greek characters should appear in straight fonts. I have tried many ways (using \\upmu instead of \\mu, using unicode dire…

---

## [@debug allocate even when not in DEBUG mode](https://discourse.julialang.org/t/debug-allocate-even-when-not-in-debug-mode/132854)

<div class="topic-metadata">

**Author:** [@zmoitier](https://discourse.julialang.org/u/zmoitier)\
**Replies:** 6\
**Last updated:** [October 4, 2025, 5:56pm UTC](https://discourse.julialang.org/t/debug-allocate-even-when-not-in-debug-mode/132854 "2025-10-04T17:56:54Z")

</div>

I would like to add debug statement in a function that is meant to be call in loops, so I would like the performance to be independent of the @debug statement when not in DEBUG mode. As an MRE, I have the function foo, a…

---

## [How to get vectorized code for single-field structs?](https://discourse.julialang.org/t/how-to-get-vectorized-code-for-single-field-structs/132875)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 1\
**Last updated:** [October 4, 2025, 3:36pm UTC](https://discourse.julialang.org/t/how-to-get-vectorized-code-for-single-field-structs/132875 "2025-10-04T15:36:25Z")

</div>

I have noticed that structs with a single field do not vectorize the same way as the underlying type. Here is an example: struct A x::Int end function f(s::NTuple{N,T}, t::NTuple{N,T}, i) where {N,T} ntuple(j -\>…

---

## [Plots.Heatmap: how to set colour of NaN values?](https://discourse.julialang.org/t/plots-heatmap-how-to-set-colour-of-nan-values/132873)

<div class="topic-metadata">

**Author:** [@dankelley](https://discourse.julialang.org/u/dankelley)\
**Replies:** 2\
**Last updated:** [October 4, 2025, 2:19pm UTC](https://discourse.julialang.org/t/plots-heatmap-how-to-set-colour-of-nan-values/132873 "2025-10-04T14:19:50Z")

</div>

I tried the following, which I thought would have a red box in the middle. But the box is white. Is there a way for me to control this? (Note: I’m a newbie, and sticking to base Plots for now. I’m hoping to not have m…

---

## [Analysis of binomial counts using glm](https://discourse.julialang.org/t/analysis-of-binomial-counts-using-glm/132837)

<div class="topic-metadata">

**Author:** [@RobertDorazio](https://discourse.julialang.org/u/RobertDorazio)\
**Replies:** 11\
**Last updated:** [October 4, 2025, 1:51pm UTC](https://discourse.julialang.org/t/analysis-of-binomial-counts-using-glm/132837 "2025-10-04T13:51:18Z")

</div>

It seems as though the glm() function in Julia does not always yield the maximum likelihood estimates of parameters when fitting logistic regression models of binomial count data. Moreover, the uncertainties of the para…

[Previous page](https://discourse.julialang.org/latest.md?page=100)

[Next page](https://discourse.julialang.org/latest.md?page=102)
