# Latest

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

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

**Page:** 872

---

## [Data stitching](https://discourse.julialang.org/t/data-stitching/89662)

<div class="topic-metadata">

**Author:** [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Replies:** 30\
**Last updated:** [November 7, 2022, 10:10pm UTC](https://discourse.julialang.org/t/data-stitching/89662 "2022-11-07T22:10:48Z")

</div>

I’m looking for a package or an algorithm, alternatively an explanation of why what I want is impossible or bad: I have a set of data x1, y1 ≈ f.(x1) and one x2, y2 ≈ a\*f.(x2) .+ b for some natural black box function f …

---

## [How to set multiple arrays from a single array?](https://discourse.julialang.org/t/how-to-set-multiple-arrays-from-a-single-array/89851)

<div class="topic-metadata">

**Author:** [@zxm403089989](https://discourse.julialang.org/u/zxm403089989)\
**Replies:** 6\
**Last updated:** [November 7, 2022, 10:16pm UTC](https://discourse.julialang.org/t/how-to-set-multiple-arrays-from-a-single-array/89851 "2022-11-07T22:16:00Z")

</div>

Is there any way to directly define new array from a known larger array? For example: a1,a2=\[1 2;3 4\] 2×2 Matrix{Int64}: 1 2 3 4 a1 1 a2 2 This doesn’t give results I need. However, if I set array from a vector of …

---

## [Packages for Fluid Simulations and Modelling?](https://discourse.julialang.org/t/packages-for-fluid-simulations-and-modelling/89882)

<div class="topic-metadata">

**Author:** [@wali\_waqar](https://discourse.julialang.org/u/wali_waqar)\
**Replies:** 1\
**Last updated:** [November 7, 2022, 9:34pm UTC](https://discourse.julialang.org/t/packages-for-fluid-simulations-and-modelling/89882 "2022-11-07T21:34:36Z")

</div>

Hi, I have to simulate Faraday Waves and Faraday Instability in floating droplets for a project that I’m doing, and I really wanted to use Julia for the task. Are there any packages that I could be of use to me?

---

## [Set\_optimizer\_attribute does not work in newer versions of JuMP, Julia, etc.?](https://discourse.julialang.org/t/set-optimizer-attribute-does-not-work-in-newer-versions-of-jump-julia-etc/89727)

<div class="topic-metadata">

**Author:** [@fksayaci](https://discourse.julialang.org/u/fksayaci)\
**Replies:** 8\
**Last updated:** [November 7, 2022, 9:14pm UTC](https://discourse.julialang.org/t/set-optimizer-attribute-does-not-work-in-newer-versions-of-jump-julia-etc/89727 "2022-11-07T21:14:10Z")

</div>

Hello all, I have an optimization model. I run it on my computer without any problem. I have the following for loop to assign values to Gurobi parameters: for paramrow in eachrow(solver\_params) if paramrow.Type == …

---

## [My mental load using Julia is much higher than, e.g., in Python. How to reduce it?](https://discourse.julialang.org/t/my-mental-load-using-julia-is-much-higher-than-e-g-in-python-how-to-reduce-it/18902)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 50\
**Last updated:** [November 7, 2022, 9:03pm UTC](https://discourse.julialang.org/t/my-mental-load-using-julia-is-much-higher-than-e-g-in-python-how-to-reduce-it/18902 "2022-11-07T21:03:11Z")

</div>

Hi, I’m new to the language, and although I like so many aspects of Julia, I am struggling to start using it. I come from Python mostly, but have been looking for an alternative in which low-level function speed can be …

---

## [DataFrame colon : vs bang ! indexing](https://discourse.julialang.org/t/dataframe-colon-vs-bang-indexing/89901)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 4\
**Last updated:** [November 7, 2022, 8:56pm UTC](https://discourse.julialang.org/t/dataframe-colon-vs-bang-indexing/89901 "2022-11-07T20:56:21Z")

</div>

I’m learning about DataFrames right now, and I’ve seen some cases where columns are accessed with a bang ! where I’d expect a colon. Here’s an example: julia\> df = DataFrame(name=\["Sally", "Bob", "Alice", "Frank"\], age=…

---

## [How to use Logging.jl?](https://discourse.julialang.org/t/how-to-use-logging-jl/89908)

<div class="topic-metadata">

**Author:** [@fksayaci](https://discourse.julialang.org/u/fksayaci)\
**Replies:** 0\
**Last updated:** [November 7, 2022, 8:42pm UTC](https://discourse.julialang.org/t/how-to-use-logging-jl/89908 "2022-11-07T20:42:51Z")

</div>

Hi all, We have an optimization model, which I can run successfully in my local computer and my HPC cluster account. My colleague in our research group recently installed Gurobi, Julia, and JuMP in his HPC cluster accou…

---

## [Plots.jl @layout specify width dynamically](https://discourse.julialang.org/t/plots-jl-layout-specify-width-dynamically/21017)

<div class="topic-metadata">

**Author:** [@nathancunn](https://discourse.julialang.org/u/nathancunn)\
**Replies:** 1\
**Last updated:** [November 7, 2022, 8:25pm UTC](https://discourse.julialang.org/t/plots-jl-layout-specify-width-dynamically/21017 "2022-11-07T20:25:15Z")

</div>

I assume this has a very simple solution, but I’m struggling. I’m trying to set up a grid of plots with a non-standard layout using Plots.jl which I can do as follows: x = rand(100, 4) l = @layout \[a{0.8w} grid(3, 1)\] …

---

## [Plots: subplot size changes when nesting plots with subplots & layout](https://discourse.julialang.org/t/plots-subplot-size-changes-when-nesting-plots-with-subplots-layout/61287)

<div class="topic-metadata">

**Author:** [@vandenman](https://discourse.julialang.org/u/vandenman)\
**Replies:** 0\
**Last updated:** [May 17, 2021, 9:14am UTC](https://discourse.julialang.org/t/plots-subplot-size-changes-when-nesting-plots-with-subplots-layout/61287 "2021-05-17T09:14:32Z")

</div>

So I’m having an issue when I put a plot with a layout into another plot. Consider the following example, my actual code is different (e.g., more pretty plotting and meaningful content), but this shows the problem alrea…

---

## [Optimizer in Evolutionary.jl returns initial conditions as minimizer with default setting](https://discourse.julialang.org/t/optimizer-in-evolutionary-jl-returns-initial-conditions-as-minimizer-with-default-setting/89902)

<div class="topic-metadata">

**Author:** [@mylo19](https://discourse.julialang.org/u/mylo19)\
**Replies:** 1\
**Last updated:** [November 7, 2022, 7:33pm UTC](https://discourse.julialang.org/t/optimizer-in-evolutionary-jl-returns-initial-conditions-as-minimizer-with-default-setting/89902 "2022-11-07T19:33:57Z")

</div>

I want to use a genetic algorithm to minimize a function. After searching, I read that the best available option is Evolutionary.jl. Hence, I started reading the documentation. I tried running the examples found in the t…

---

## [Layout with several grids](https://discourse.julialang.org/t/layout-with-several-grids/87474)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 2\
**Last updated:** [November 7, 2022, 7:23pm UTC](https://discourse.julialang.org/t/layout-with-several-grids/87474 "2022-11-07T19:23:12Z")

</div>

I am using Plots with GR backend and trying to create a 2x2 grid of plots with a common legend in the bottom. As it happens, there is no support for horizontal legends with gr, so I am trying to add plots without a fram…

---

## [MethodError: no method matching Float64 when using ForwardDiff.jl despite me pre-allocating arrays to take floating point](https://discourse.julialang.org/t/methoderror-no-method-matching-float64-when-using-forwarddiff-jl-despite-me-pre-allocating-arrays-to-take-floating-point/89859)

<div class="topic-metadata">

**Author:** [@sumant28](https://discourse.julialang.org/u/sumant28)\
**Replies:** 4\
**Last updated:** [November 7, 2022, 7:07pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-float64-when-using-forwarddiff-jl-despite-me-pre-allocating-arrays-to-take-floating-point/89859 "2022-11-07T19:07:31Z")

</div>

using Optimization, OptimizationOptimJL, OptimizationBBO, OptimizationMOI, ForwardDiff, ModelingToolkit, Random, OptimizationOptimisers, Statistics, Plots function MSEg(u, p) X = p.X y = p.y h = u\[1\] beta = u\[2:…

---

## [Julia at CSCS Switzerland](https://discourse.julialang.org/t/julia-at-cscs-switzerland/89898)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 2\
**Last updated:** [November 7, 2022, 6:15pm UTC](https://discourse.julialang.org/t/julia-at-cscs-switzerland/89898 "2022-11-07T18:15:58Z")

</div>

Really interesting article. Is Sebin John on here?

---

## [Take a derivative with respect to an expression in Symbolics](https://discourse.julialang.org/t/take-a-derivative-with-respect-to-an-expression-in-symbolics/89900)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 0\
**Last updated:** [November 7, 2022, 6:05pm UTC](https://discourse.julialang.org/t/take-a-derivative-with-respect-to-an-expression-in-symbolics/89900 "2022-11-07T18:05:27Z")

</div>

The Symbolics documentation says (bold italic emphasis added) struct Differential \<: Symbolics.Operator Represents a differential operator. Fields x : The variable or expression to differentiate with respect to. T…

---

## [What are Julia's coordinates in the λ-cube?](https://discourse.julialang.org/t/what-are-julias-coordinates-in-the-cube/89883)

<div class="topic-metadata">

**Author:** [@cdawg](https://discourse.julialang.org/u/cdawg)\
**Replies:** 6\
**Last updated:** [November 7, 2022, 4:51pm UTC](https://discourse.julialang.org/t/what-are-julias-coordinates-in-the-cube/89883 "2022-11-07T16:51:51Z")

</div>

I was sidetracked procrastinating reading a thread about using “{}”. here and popping out a new thread. My vote was to make where statements more expressive by doing type calculations inside blocks deliminated by {} so …

---

## [ArpackBuilder gone, Arpack v0.3.1 build fails for Julia 1.0.\*](https://discourse.julialang.org/t/arpackbuilder-gone-arpack-v0-3-1-build-fails-for-julia-1-0/89869)

<div class="topic-metadata">

**Author:** [@HanD](https://discourse.julialang.org/u/HanD)\
**Replies:** 9\
**Last updated:** [November 7, 2022, 4:10pm UTC](https://discourse.julialang.org/t/arpackbuilder-gone-arpack-v0-3-1-build-fails-for-julia-1-0/89869 "2022-11-07T16:10:13Z")

</div>

We have been using Julia 1.0.\* for a legacy project for quite some time. The program relies on the MultivariateStats package, which in turn uses Arpack v0.3.1. This version of Arpack relies on ArpackBuilder, or rather, r…

---

## [Multiplication of vector of matrices and vector of vectors](https://discourse.julialang.org/t/multiplication-of-vector-of-matrices-and-vector-of-vectors/89874)

<div class="topic-metadata">

**Author:** [@dalbandea](https://discourse.julialang.org/u/dalbandea)\
**Replies:** 3\
**Last updated:** [November 7, 2022, 3:59pm UTC](https://discourse.julialang.org/t/multiplication-of-vector-of-matrices-and-vector-of-vectors/89874 "2022-11-07T15:59:50Z")

</div>

I’m trying to optimize a multiplication of a vector of Matrices A of size (L, L, L) and a vector of vectors x of size (L,L), which will result in a vector of vectors c of size (L, L). That is, each c\[i,:\] is the result …

---

## [T Distribution - Automatic Differentiation on quantile and cdf function](https://discourse.julialang.org/t/t-distribution-automatic-differentiation-on-quantile-and-cdf-function/89434)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 9\
**Last updated:** [November 7, 2022, 3:42pm UTC](https://discourse.julialang.org/t/t-distribution-automatic-differentiation-on-quantile-and-cdf-function/89434 "2022-11-07T15:42:02Z")

</div>

Hi there, I need to use the cdf (and quantile) function of the T distribution inside a function that I want to use Automatic Differentiation on. This works fine with almost any univariate distribution from the Distribut…

---

## [\[ANN\] Package Triad: Dynamics of Value Evolution](https://discourse.julialang.org/t/ann-package-triad-dynamics-of-value-evolution/89885)

<div class="topic-metadata">

**Author:** [@thevolatilebit](https://discourse.julialang.org/u/thevolatilebit)\
**Replies:** 0\
**Last updated:** [November 7, 2022, 3:03pm UTC](https://discourse.julialang.org/t/ann-package-triad-dynamics-of-value-evolution/89885 "2022-11-07T15:03:36Z")

</div>

We are excited to announce the release of DyVE, a Julia framework for computational value dynamics. The acronym stands for Dynamics of Value Evolution. DyVE is aimed at designing, fitting, and integrating dynamical mod…

---

## [Julia plots are very slow in every run](https://discourse.julialang.org/t/julia-plots-are-very-slow-in-every-run/89863)

<div class="topic-metadata">

**Author:** [@Fuad\_Hasibul\_Hasan](https://discourse.julialang.org/u/Fuad_Hasibul_Hasan)\
**Replies:** 5\
**Last updated:** [November 7, 2022, 2:24pm UTC](https://discourse.julialang.org/t/julia-plots-are-very-slow-in-every-run/89863 "2022-11-07T14:24:54Z")

</div>

I am relatively new to Julia. I find plotting very slow; though I found some questions and responses about slow plotting for the first time due to compilation, in my case it is slow every time. Here is what I am doing: @…

---

## [Silhouette coefficient calculation](https://discourse.julialang.org/t/silhouette-coefficient-calculation/89861)

<div class="topic-metadata">

**Author:** [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Replies:** 5\
**Last updated:** [November 7, 2022, 1:49pm UTC](https://discourse.julialang.org/t/silhouette-coefficient-calculation/89861 "2022-11-07T13:49:47Z")

</div>

I’ve written a Julia script to calculate the silhouette coefficient of the ClusterAnalysis.jl Kmeans’ result, but it’s highly inefficient and slow. I’ve written the procedure for both common and simplified versions of th…

---

## [Importing Plots increasing garbage collection](https://discourse.julialang.org/t/importing-plots-increasing-garbage-collection/89878)

<div class="topic-metadata">

**Author:** [@jewh](https://discourse.julialang.org/u/jewh)\
**Replies:** 3\
**Last updated:** [November 7, 2022, 1:57pm UTC](https://discourse.julialang.org/t/importing-plots-increasing-garbage-collection/89878 "2022-11-07T13:57:01Z")

</div>

It seems that importing Plots is significantly increasing the mean % garbage collection time when executing this function motif2. Does anyone know why, and how to prevent it? julia\> using BenchmarkTools julia\> function…

---

## [Recordings of Julia Computing webinars available?](https://discourse.julialang.org/t/recordings-of-julia-computing-webinars-available/89817)

<div class="topic-metadata">

**Author:** [@pxshen](https://discourse.julialang.org/u/pxshen)\
**Replies:** 7\
**Last updated:** [November 7, 2022, 1:35pm UTC](https://discourse.julialang.org/t/recordings-of-julia-computing-webinars-available/89817 "2022-11-07T13:35:20Z")

</div>

Specifically I registered but missed “Trimming, Linearization, and Model Predictive Control (MPC) Design with JuliaSim” on 11/2. Is there a recording?

---

## [Initiate a struct without its name but only by its type in local scope](https://discourse.julialang.org/t/initiate-a-struct-without-its-name-but-only-by-its-type-in-local-scope/89875)

<div class="topic-metadata">

**Author:** [@elakelaiset](https://discourse.julialang.org/u/elakelaiset)\
**Replies:** 4\
**Last updated:** [November 7, 2022, 1:17pm UTC](https://discourse.julialang.org/t/initiate-a-struct-without-its-name-but-only-by-its-type-in-local-scope/89875 "2022-11-07T13:17:55Z")

</div>

Hi together, i try to define a function which creates a new composite based on a copy of a given composite, but with a single field changed, and without using mutable structs. I’ve attached a code snipped which tries t…

---

## [Where does Julia in VS Code specify startup shell commands if not within startup.jl?](https://discourse.julialang.org/t/where-does-julia-in-vs-code-specify-startup-shell-commands-if-not-within-startup-jl/89791)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 2\
**Last updated:** [November 7, 2022, 12:10pm UTC](https://discourse.julialang.org/t/where-does-julia-in-vs-code-specify-startup-shell-commands-if-not-within-startup-jl/89791 "2022-11-07T12:10:58Z")

</div>

For some reason when the Julia REPL starts within VSCode when I hit shift-enter on my first line of Julia code a = 1 contained within a .jl file I get: source /Users/gardnera/tools/miniconda3/bin/activate julia\> urce /U…

---

## [Usage of lazy vector instead of function](https://discourse.julialang.org/t/usage-of-lazy-vector-instead-of-function/89766)

<div class="topic-metadata">

**Author:** [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Replies:** 22\
**Last updated:** [November 7, 2022, 10:37am UTC](https://discourse.julialang.org/t/usage-of-lazy-vector-instead-of-function/89766 "2022-11-07T10:37:22Z")

</div>

Hi everyone, recently I stumbled across a nice benchmark between different languages and was having a look at the Julia implementation: Now in general, I understand why there is a use case for lazy arrays, but is this…

---

## [How to save two overlapped plots together in one single file?](https://discourse.julialang.org/t/how-to-save-two-overlapped-plots-together-in-one-single-file/89852)

<div class="topic-metadata">

**Author:** [@mzd1893](https://discourse.julialang.org/u/mzd1893)\
**Replies:** 3\
**Last updated:** [November 7, 2022, 8:42am UTC](https://discourse.julialang.org/t/how-to-save-two-overlapped-plots-together-in-one-single-file/89852 "2022-11-07T08:42:51Z")

</div>

using Plots plot(0:10,sin); plot!(0:10,sin,seriestype = :scatter) In this example, the output are actually two plots. How can I save them in one file?

---

## [Symbolics not simplifying fully](https://discourse.julialang.org/t/symbolics-not-simplifying-fully/89842)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 3\
**Last updated:** [November 7, 2022, 6:27am UTC](https://discourse.julialang.org/t/symbolics-not-simplifying-fully/89842 "2022-11-07T06:27:51Z")

</div>

When multiplying expr \* expr^-1 . Symbolics.simplify / Symbolics.simplify\_fractions don’t return 1 julia\> using Symbolics julia\> @variables m mol 2-element Vector{Num}: m mol julia\> simplify(eval(Meta.parse("m^3\*…

---

## [Create lower dimensional manifolds in a larger dimension](https://discourse.julialang.org/t/create-lower-dimensional-manifolds-in-a-larger-dimension/89848)

<div class="topic-metadata">

**Author:** [@JosieG](https://discourse.julialang.org/u/JosieG)\
**Replies:** 0\
**Last updated:** [November 6, 2022, 6:40pm UTC](https://discourse.julialang.org/t/create-lower-dimensional-manifolds-in-a-larger-dimension/89848 "2022-11-06T18:40:52Z")

</div>

I’m very new to Topology. Suppose I want to create a 1-dim/2-dim/3-dim manifold, which is in a 20-dim space, and I will apply some dimension reduction, like PCA to their original dim. Is there anyway to do that? I went t…

---

## [Using the same parameter n times in a function call](https://discourse.julialang.org/t/using-the-same-parameter-n-times-in-a-function-call/89833)

<div class="topic-metadata">

**Author:** [@Zackyzz](https://discourse.julialang.org/u/Zackyzz)\
**Replies:** 7\
**Last updated:** [November 6, 2022, 7:53pm UTC](https://discourse.julialang.org/t/using-the-same-parameter-n-times-in-a-function-call/89833 "2022-11-06T19:53:55Z")

</div>

Hello! I am struggling to find a way to “automate” this type of function call: using LinearAlgebra x = \[rand() rand(); rand() rand()\] kron(x, x) #n=2 kron(x, x, x) #n=3 kron(x, x, x, x) #n=4 Basically, having a 2x2 ma…

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

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