# Latest

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

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

**Page:** 272

---

## [Has Plots.mesh3d() opacity with respect to depth when displaying multiple shapes?](https://discourse.julialang.org/t/has-plots-mesh3d-opacity-with-respect-to-depth-when-displaying-multiple-shapes/122941)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 0\
**Last updated:** [November 22, 2024, 9:17am UTC](https://discourse.julialang.org/t/has-plots-mesh3d-opacity-with-respect-to-depth-when-displaying-multiple-shapes/122941 "2024-11-22T09:17:15Z")

</div>

using Plots Plots.mesh3d(\[1,2,2,1\],\[1,1,1,1\],\[1,1,2,2\], connections=\[(1,2,3,4)\], linecolor=:black) Plots.mesh3d!(\[1,2,2,1\],\[1.1,1.1,1.1,1.1\],\[1,1,2,2\], connections=\[(1,2,3,4)\], linecolor=:black) D…

---

## [State of real time DSP?](https://discourse.julialang.org/t/state-of-real-time-dsp/122934)

<div class="topic-metadata">

**Author:** [@RIU7](https://discourse.julialang.org/u/RIU7)\
**Replies:** 2\
**Last updated:** [November 22, 2024, 9:02am UTC](https://discourse.julialang.org/t/state-of-real-time-dsp/122934 "2024-11-22T09:02:06Z")

</div>

Hey guys, I’m interested in learning Julia, specifically for processing and visualizing signals and data. I myself am a C programmer, which is a lovely language but I’m in dire need of a simpler one for scripting, and I …

---

## [Capturing best solution from a JuMP model that times out](https://discourse.julialang.org/t/capturing-best-solution-from-a-jump-model-that-times-out/122807)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 5\
**Last updated:** [November 22, 2024, 6:59am UTC](https://discourse.julialang.org/t/capturing-best-solution-from-a-jump-model-that-times-out/122807 "2024-11-22T06:59:54Z")

</div>

I have a mixed integer problem that I think is sufficiently hard that it won’t complete in sensible time. I am probably using HiGHS. I would like to see the best feasible solution that was found. Actually I might like…

---

## [Simple machine learning example](https://discourse.julialang.org/t/simple-machine-learning-example/122912)

<div class="topic-metadata">

**Author:** [@ohm](https://discourse.julialang.org/u/ohm)\
**Replies:** 1\
**Last updated:** [November 21, 2024, 11:28pm UTC](https://discourse.julialang.org/t/simple-machine-learning-example/122912 "2024-11-21T23:28:36Z")

</div>

Hello, all, this is my first Julia question. Apologies is my formatting is off or if I am posting in the wrong place. My Julia journey started with the book Tanmay Teaches: Julia for beginners, which is a nice intro for…

---

## [Crash when tuning SVC with multithreading in MLJ.jl](https://discourse.julialang.org/t/crash-when-tuning-svc-with-multithreading-in-mlj-jl/122908)

<div class="topic-metadata">

**Author:** [@Yuan-Ru-Lin](https://discourse.julialang.org/u/Yuan-Ru-Lin)\
**Replies:** 4\
**Last updated:** [November 21, 2024, 10:11pm UTC](https://discourse.julialang.org/t/crash-when-tuning-svc-with-multithreading-in-mlj-jl/122908 "2024-11-21T22:11:41Z")

</div>

I have been trying to tune a set of hyper-parameters of a SVC. The SVC is from LIBSVM.jl. It works when I use only one thread, but crashes indeterministically with multiple threads. Not only did it may or may not crash,…

---

## [Multiple chart types in Plots.jl](https://discourse.julialang.org/t/multiple-chart-types-in-plots-jl/122904)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 8:25pm UTC](https://discourse.julialang.org/t/multiple-chart-types-in-plots-jl/122904 "2024-11-21T20:25:52Z")

</div>

Is it possible to have multiple chart types in a subplot using Plots.jl ? (the same way one could do it with PlotlyJS) I ideally would like to combine a contourf with a regular line plot (see example below) Reference: M…

---

## [Calling multiple user plot recipes from single recipe](https://discourse.julialang.org/t/calling-multiple-user-plot-recipes-from-single-recipe/122885)

<div class="topic-metadata">

**Author:** [@Ickaser](https://discourse.julialang.org/u/Ickaser)\
**Replies:** 3\
**Last updated:** [November 21, 2024, 7:28pm UTC](https://discourse.julialang.org/t/calling-multiple-user-plot-recipes-from-single-recipe/122885 "2024-11-21T19:28:40Z")

</div>

I am building a suite of Plots.jl recipes for my common visualizations, which has been very helpful–this functionality is awesome. I’ve arrived at a point where I would like to compose multiple of my user recipes in a s…

---

## [Printing types: regular usage vs. jldoctests](https://discourse.julialang.org/t/printing-types-regular-usage-vs-jldoctests/122892)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 4:24pm UTC](https://discourse.julialang.org/t/printing-types-regular-usage-vs-jldoctests/122892 "2024-11-21T16:24:39Z")

</div>

When I use my package regularly, a data type is shown like this: julia\> using PDBTools julia\> ats = read\_pdb(PDBTools.TESTPDB) Vector{Atom{Nothing}} with 62026 atoms with fields: index name resname chain resnum…

---

## [Checked vs unchecked, e.g. (floored) divison](https://discourse.julialang.org/t/checked-vs-unchecked-e-g-floored-divison/122899)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 1\
**Last updated:** [November 21, 2024, 4:07pm UTC](https://discourse.julialang.org/t/checked-vs-unchecked-e-g-floored-divison/122899 "2024-11-21T16:07:37Z")

</div>

Continuing the discussion from Why are there all these strange stumbling blocks in Julia?: I first continue, answer here by forking old discussion (by clicking corner in top left corner, for the first time, good to know…

---

## [Save data to same files from independent, parallel processes](https://discourse.julialang.org/t/save-data-to-same-files-from-independent-parallel-processes/122876)

<div class="topic-metadata">

**Author:** [@J-J](https://discourse.julialang.org/u/J-J)\
**Replies:** 1\
**Last updated:** [November 21, 2024, 4:05pm UTC](https://discourse.julialang.org/t/save-data-to-same-files-from-independent-parallel-processes/122876 "2024-11-21T16:05:20Z")

</div>

Problem I have a Julia script which computes two numbers, num1 and num2, but the computation isn’t deterministic and so these computed numbers are different each time I run the script. Now I want to run this script many …

---

## [Standardize code path to reconstruct factorizations](https://discourse.julialang.org/t/standardize-code-path-to-reconstruct-factorizations/122887)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 1\
**Last updated:** [November 21, 2024, 3:45pm UTC](https://discourse.julialang.org/t/standardize-code-path-to-reconstruct-factorizations/122887 "2024-11-21T15:45:03Z")

</div>

What this is about Reading the code for various factorizations in LinearAlgebra, I notized that each define a bunch of methods to reconstruct a factorization (ie obtain an ::AbstractMatrix). Eg Cholesky has AbstractMat…

---

## [Documenting a plot recipe](https://discourse.julialang.org/t/documenting-a-plot-recipe/122423)

<div class="topic-metadata">

**Author:** [@franckgaga](https://discourse.julialang.org/u/franckgaga)\
**Replies:** 3\
**Last updated:** [November 21, 2024, 3:23pm UTC](https://discourse.julialang.org/t/documenting-a-plot-recipe/122423 "2024-11-21T15:23:02Z")

</div>

ModelPredictiveControl.jl defines plot recipes that works on SimResult types. My recipes include keyword arguments like plotu=false so user can type using ModelPredictiveControl, ControlSystemsBase, Plots res = sim!(Lin…

---

## [Connecting Tidier with MSSQL](https://discourse.julialang.org/t/connecting-tidier-with-mssql/121018)

<div class="topic-metadata">

**Author:** [@jjAtNxtPt](https://discourse.julialang.org/u/jjAtNxtPt)\
**Replies:** 12\
**Last updated:** [November 19, 2024, 1:10pm UTC](https://discourse.julialang.org/t/connecting-tidier-with-mssql/121018 "2024-11-19T13:10:52Z")

</div>

Hi, all. I’m hoping to get some Tidier officiandos here to help me out. I’m trying to connect to a MSSQL database using Tidier because I want to test out that package. I have followed all the info in the docs as far a…

---

## [Strange error message when using maximum()](https://discourse.julialang.org/t/strange-error-message-when-using-maximum/122889)

<div class="topic-metadata">

**Author:** [@dnldlg](https://discourse.julialang.org/u/dnldlg)\
**Replies:** 9\
**Last updated:** [November 21, 2024, 1:54pm UTC](https://discourse.julialang.org/t/strange-error-message-when-using-maximum/122889 "2024-11-21T13:54:12Z")

</div>

Hello everyone, I encounter a strange error when using the maximum function on Julia v1.10.6. Let’s look at a variable Na, which is a vector of integers. Example code: println(Na) println(typeof(Na)) println(typeof(Na…

---

## [Specify loss function directly for NeuralPDE?](https://discourse.julialang.org/t/specify-loss-function-directly-for-neuralpde/77757)

<div class="topic-metadata">

**Author:** [@raminammour](https://discourse.julialang.org/u/raminammour)\
**Replies:** 7\
**Last updated:** [November 21, 2024, 1:50pm UTC](https://discourse.julialang.org/t/specify-loss-function-directly-for-neuralpde/77757 "2024-11-21T13:50:39Z")

</div>

Hello, In NeuralPDE you normally define the PDE (lhs-rhs=0) symbolically and the loss function is built internally, loosely \\int dvars ||lhs(vars) - rhs(vars)||^2 . Is there a way to specify the objective function sy…

---

## [Why isn't this Base piracy breaking a Base method call?](https://discourse.julialang.org/t/why-isnt-this-base-piracy-breaking-a-base-method-call/122894)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 1:03pm UTC](https://discourse.julialang.org/t/why-isnt-this-base-piracy-breaking-a-base-method-call/122894 "2024-11-21T13:03:25Z")

</div>

In the middle of reading another question, I used Cthulhu.jl to @descend into maximum(\[1,2,3\]) to find an internal method to pirate, but contrary to my intentions, it didn’t break anything: julia\> @eval Base mapreduce\_f…

---

## [Why are there all these strange stumbling blocks in Julia?](https://discourse.julialang.org/t/why-are-there-all-these-strange-stumbling-blocks-in-julia/92644)

<div class="topic-metadata">

**Author:** [@Sandjan](https://discourse.julialang.org/u/Sandjan)\
**Replies:** 89\
**Last updated:** [November 21, 2024, 12:41pm UTC](https://discourse.julialang.org/t/why-are-there-all-these-strange-stumbling-blocks-in-julia/92644 "2024-11-21T12:41:32Z")

</div>

I have programmed in Python so far and find the Python syntax very convenient. When learning Julia I constantly notice things that I can not understand: Why is there no short and simple floor division operator like in P…

---

## [Downloading transformer weights](https://discourse.julialang.org/t/downloading-transformer-weights/122893)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 0\
**Last updated:** [November 21, 2024, 12:26pm UTC](https://discourse.julialang.org/t/downloading-transformer-weights/122893 "2024-11-21T12:26:12Z")

</div>

I’d like to download the weighting matrices for an open source transformer model (BERT, GPT2…) and try and do the matrix equations from scatch in Julia. Any thoughts on the best way to do this? ChatGPT suggested eithe…

---

## [Is it possible to simulate a resistive network using ModelingToolkit?](https://discourse.julialang.org/t/is-it-possible-to-simulate-a-resistive-network-using-modelingtoolkit/122690)

<div class="topic-metadata">

**Author:** [@Ricardo\_Borges](https://discourse.julialang.org/u/Ricardo_Borges)\
**Replies:** 16\
**Last updated:** [November 21, 2024, 12:15pm UTC](https://discourse.julialang.org/t/is-it-possible-to-simulate-a-resistive-network-using-modelingtoolkit/122690 "2024-11-21T12:15:15Z")

</div>

Hi, I’m trying to simulate a simple circuit of a constant voltage source connected to a resistor, using MTK. But I’m getting empty results when I solve the problem. Bear in mind this is a simple, toy problem, which I co…

---

## [DimensionalData vs AxisKeys](https://discourse.julialang.org/t/dimensionaldata-vs-axiskeys/122880)

<div class="topic-metadata">

**Author:** [@kli6891](https://discourse.julialang.org/u/kli6891)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 11:51am UTC](https://discourse.julialang.org/t/dimensionaldata-vs-axiskeys/122880 "2024-11-21T11:51:30Z")

</div>

Hi, it seems that DimensionalData and AxisKeys have quite a bit overlap. What are the considerations I should keep in mind for choosing between these two packages?

---

## [Idea: shortcut notation for Union{T, Nothing}](https://discourse.julialang.org/t/idea-shortcut-notation-for-union-t-nothing/71895)

<div class="topic-metadata">

**Author:** [@Steven\_Sagaert](https://discourse.julialang.org/u/Steven_Sagaert)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 11:02am UTC](https://discourse.julialang.org/t/idea-shortcut-notation-for-union-t-nothing/71895 "2024-11-21T11:02:22Z")

</div>

It would be nice if Union{T, Nothing} could be notated as T? like in Kotlin, C# etc. Not necessary but nice to have. Makes the code more compact and readable.

---

## [Representing a symmetric matrix factorization](https://discourse.julialang.org/t/representing-a-symmetric-matrix-factorization/122881)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 3\
**Last updated:** [November 21, 2024, 9:56am UTC](https://discourse.julialang.org/t/representing-a-symmetric-matrix-factorization/122881 "2024-11-21T09:56:35Z")

</div>

This question is about implementing a matrix factorization with some operations in Julia, ideally relying on existing optimized implementations, in a generic way do that I don’t have to commit to a particular implementat…

---

## [Nuclear norm minimization objective using JuMP](https://discourse.julialang.org/t/nuclear-norm-minimization-objective-using-jump/122869)

<div class="topic-metadata">

**Author:** [@MLL](https://discourse.julialang.org/u/MLL)\
**Replies:** 6\
**Last updated:** [November 21, 2024, 8:39am UTC](https://discourse.julialang.org/t/nuclear-norm-minimization-objective-using-jump/122869 "2024-11-21T08:39:45Z")

</div>

I am new to JuMP and trying to solve the nuclear norm minimization problem for low-rank matrix completion: \\text{min}\_\\mathbf{X} || \\mathbf{X} ||\_\* \\ \\text{ subject to }\\ x\_{ij} = m\_{ij},\\ \\ (i, j) \\in \\Omega Where…

---

## [Issue computing eigenvalues/vectors and orthonormalization](https://discourse.julialang.org/t/issue-computing-eigenvalues-vectors-and-orthonormalization/122835)

<div class="topic-metadata">

**Author:** [@Sparsetacus](https://discourse.julialang.org/u/Sparsetacus)\
**Replies:** 9\
**Last updated:** [November 21, 2024, 7:50am UTC](https://discourse.julialang.org/t/issue-computing-eigenvalues-vectors-and-orthonormalization/122835 "2024-11-21T07:50:46Z")

</div>

Hi there, I am having trouble to compute eigenvectors and orthonormalize them. I try to solve the generalized eigenvalues problem associated to matrices A and B. A is not symmetric; B is symmetric but not necessary de…

---

## [Figure not fitting in the frame with Plots.jl](https://discourse.julialang.org/t/figure-not-fitting-in-the-frame-with-plots-jl/122874)

<div class="topic-metadata">

**Author:** [@tduretz](https://discourse.julialang.org/u/tduretz)\
**Replies:** 1\
**Last updated:** [November 21, 2024, 6:27am UTC](https://discourse.julialang.org/t/figure-not-fitting-in-the-frame-with-plots-jl/122874 "2024-11-21T06:27:49Z")

</div>

Hi, I’m making a figure with Plots.jl and GR backend. I have an issue as the figure does not fully fit in the frame: the colorbar annotations are cut out on the right side. Is there a simple workaround for this (els…

---

## [Useful "rules" for coding assistants](https://discourse.julialang.org/t/useful-rules-for-coding-assistants/122868)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 3\
**Last updated:** [November 21, 2024, 3:52am UTC](https://discourse.julialang.org/t/useful-rules-for-coding-assistants/122868 "2024-11-21T03:52:34Z")

</div>

Coding assistants Cursor (and recently Copilot) accept rules to guide responses. I’ve read that coding assistant results can be greatly improved with well defined rules. To that end I’d like to dedicate this thread to Ju…

---

## [JuMP operators for \> and mod2pi?](https://discourse.julialang.org/t/jump-operators-for-and-mod2pi/122871)

<div class="topic-metadata">

**Author:** [@lamont](https://discourse.julialang.org/u/lamont)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 1:50am UTC](https://discourse.julialang.org/t/jump-operators-for-and-mod2pi/122871 "2024-11-21T01:50:56Z")

</div>

I’m trying to solve an NLP with JuMP and the problem that I’m trying to solve canonically converts orbital state vectors into keplerian elements in order to match terminal conditions. This is horrible and very nonlinear…

---

## [Makie - single bar label for stacked bar](https://discourse.julialang.org/t/makie-single-bar-label-for-stacked-bar/122873)

<div class="topic-metadata">

**Author:** [@sleak](https://discourse.julialang.org/u/sleak)\
**Replies:** 2\
**Last updated:** [November 20, 2024, 10:34pm UTC](https://discourse.julialang.org/t/makie-single-bar-label-for-stacked-bar/122873 "2024-11-20T22:34:14Z")

</div>

I have a stacked bar plot, and can add a label to each block in the stack with bar\_labels=:y. But this is noisy, and I’d like to only add a single label to the top of the stack, showing the total stacked value. How do I …

---

## [Getting Catalyst and Oscar to work together](https://discourse.julialang.org/t/getting-catalyst-and-oscar-to-work-together/121299)

<div class="topic-metadata">

**Author:** [@adhalanay](https://discourse.julialang.org/u/adhalanay)\
**Replies:** 10\
**Last updated:** [November 20, 2024, 9:34pm UTC](https://discourse.julialang.org/t/getting-catalyst-and-oscar-to-work-together/121299 "2024-11-20T21:34:06Z")

</div>

This more of an extension of the previous topic https://discourse.julialang.org/t/finding-steady-states-symbolicaly/119545/18. First some background: commutative algebra is of great use for studying mass-action chemical…

---

## [Best practices for passing JuMP decision variables and data to a function for adding constraints](https://discourse.julialang.org/t/best-practices-for-passing-jump-decision-variables-and-data-to-a-function-for-adding-constraints/122853)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 2\
**Last updated:** [November 20, 2024, 8:15pm UTC](https://discourse.julialang.org/t/best-practices-for-passing-jump-decision-variables-and-data-to-a-function-for-adding-constraints/122853 "2024-11-20T20:15:31Z")

</div>

I have an integer optimization problem of the form: {\\text{minimize}}\_{x\_{1},\\ldots,x\_{r}} \\quad c\_{1}^{\\top}x\_{1}+c\_{2}^{\\top}x\_{2}+\\ldots+c\_{r}^{\\top}x\_{r}\\\\​\\text{subject to} \\quad B\_{1}x\_{1}+B\_{2…

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

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