# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=255

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

**Page:** 256

---

## [Xtics font size in Makie?](https://discourse.julialang.org/t/xtics-font-size-in-makie/86377)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 2\
**Last updated:** [August 26, 2022, 10:31am UTC](https://discourse.julialang.org/t/xtics-font-size-in-makie/86377 "2022-08-26T10:31:13Z")

</div>

How can I tune the xtics font size in Makie ? Thank your for your help.

---

## [How to seed the KMeans algorithm in Clustering.jl?](https://discourse.julialang.org/t/how-to-seed-the-kmeans-algorithm-in-clustering-jl/86288)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 3\
**Last updated:** [August 26, 2022, 6:58am UTC](https://discourse.julialang.org/t/how-to-seed-the-kmeans-algorithm-in-clustering-jl/86288 "2022-08-26T06:58:30Z")

</div>

How do I make sure I get the same clusters everytime I run the following code: using Clustering using Random # make a random dataset with 1000 random 5-dimensional points X = rand(MersenneTwister(10),5, 1000) # cluste…

---

## [Problem setting the Local Optimizer](https://discourse.julialang.org/t/problem-setting-the-local-optimizer/86257)

<div class="topic-metadata">

**Author:** [@Yagiz\_Dereboy](https://discourse.julialang.org/u/Yagiz_Dereboy)\
**Replies:** 4\
**Last updated:** [August 26, 2022, 6:56am UTC](https://discourse.julialang.org/t/problem-setting-the-local-optimizer/86257 "2022-08-26T06:56:24Z")

</div>

I have problem with the Augmented Lagrangian Method. With my syntax algorithm does not move and gets a forced stop. I am almost sure problem is with the setting of the local optimizer. I am not very familiar with the Jul…

---

## [How do I refer to a column name with space in it in DataFramesMacro v0.3? My code doing $"name space" used to work](https://discourse.julialang.org/t/how-do-i-refer-to-a-column-name-with-space-in-it-in-dataframesmacro-v0-3-my-code-doing-name-space-used-to-work/86369)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [August 26, 2022, 4:16am UTC](https://discourse.julialang.org/t/how-do-i-refer-to-a-column-name-with-space-in-it-in-dataframesmacro-v0-3-my-code-doing-name-space-used-to-work/86369 "2022-08-26T04:16:02Z")

</div>

My code is like this pings\_for\_md = @chain pings\_for\_md\_tmp begin @subset $"Games Played" \>= NGAME\_THRESHOLD end The @subset line used to work but it no longer works and I can’t find the right syntax in the doc

---

## [BilevelJuMP: Setting start values for lower level dual variables in ProductMode()](https://discourse.julialang.org/t/bileveljump-setting-start-values-for-lower-level-dual-variables-in-productmode/86272)

<div class="topic-metadata">

**Author:** [@LukasBarner](https://discourse.julialang.org/u/LukasBarner)\
**Replies:** 4\
**Last updated:** [August 26, 2022, 12:41am UTC](https://discourse.julialang.org/t/bileveljump-setting-start-values-for-lower-level-dual-variables-in-productmode/86272 "2022-08-26T00:41:06Z")

</div>

Hi everyone, I have started to use BilevelJuMP and I’m really beginning to enjoy its flexibility! I’m trying to solve a larger scale calibration problem, where the lower level is a QP with affine (in-)equality constrai…

---

## [How to change the line width of mean curve when plotting with Plots.jl and MonteCarloMeasurements.jl](https://discourse.julialang.org/t/how-to-change-the-line-width-of-mean-curve-when-plotting-with-plots-jl-and-montecarlomeasurements-jl/86046)

<div class="topic-metadata">

**Author:** [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Replies:** 2\
**Last updated:** [August 25, 2022, 11:37pm UTC](https://discourse.julialang.org/t/how-to-change-the-line-width-of-mean-curve-when-plotting-with-plots-jl-and-montecarlomeasurements-jl/86046 "2022-08-25T23:37:11Z")

</div>

Using plot command in MonteCarloMeasurements.jl package, I have a plot of mean function and a shaded area showing the (0.025,0.0975) quantiles. How can I change the width (or line style) of the mean curve? I tried alrea…

---

## [LSTM with convolution instead of matrix multiplication (ConvLSTM)](https://discourse.julialang.org/t/lstm-with-convolution-instead-of-matrix-multiplication-convlstm/86315)

<div class="topic-metadata">

**Author:** [@Dieter](https://discourse.julialang.org/u/Dieter)\
**Replies:** 1\
**Last updated:** [August 25, 2022, 11:24pm UTC](https://discourse.julialang.org/t/lstm-with-convolution-instead-of-matrix-multiplication-convlstm/86315 "2022-08-25T23:24:45Z")

</div>

Hello Community I have already used Julia for many tasks but not for machine learning purposes. Now, I would need a LSTM network, which uses internal convolutional operations (not convolved matrices as input). Such a n…

---

## [Efficient way to restrict the domain of variables?](https://discourse.julialang.org/t/efficient-way-to-restrict-the-domain-of-variables/86314)

<div class="topic-metadata">

**Author:** [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Replies:** 1\
**Last updated:** [August 25, 2022, 7:38pm UTC](https://discourse.julialang.org/t/efficient-way-to-restrict-the-domain-of-variables/86314 "2022-08-25T19:38:09Z")

</div>

Which one is more efficient in term of computational time? (I’m looking forward to read a general answer, but below is a simple example to describe the situation) Suppose you have a large network (over 1K nodes and 10K …

---

## [Counting weeks in a timeseries](https://discourse.julialang.org/t/counting-weeks-in-a-timeseries/86181)

<div class="topic-metadata">

**Author:** [@chiraganand](https://discourse.julialang.org/u/chiraganand)\
**Replies:** 7\
**Last updated:** [August 25, 2022, 6:50pm UTC](https://discourse.julialang.org/t/counting-weeks-in-a-timeseries/86181 "2022-08-25T18:50:34Z")

</div>

Hello, For one of the codes I was working on I had to count the number of unique weeks in a timeseries. I ended up using the Dates.week() function and found that the result can be incorrect in cases where the data spans…

---

## [Byrow with user defined function](https://discourse.julialang.org/t/byrow-with-user-defined-function/79132)

<div class="topic-metadata">

**Author:** [@monopolynomial](https://discourse.julialang.org/u/monopolynomial)\
**Replies:** 4\
**Last updated:** [May 1, 2022, 10:32am UTC](https://discourse.julialang.org/t/byrow-with-user-defined-function/79132 "2022-05-01T10:32:55Z")

</div>

for data like ds=Dataset(x1=\[1,2,3\],x2=\[3,2,1\]) if I want to filter rows where x1 is less than x2 then this works filter(ds, :x1, type=isless, with = :x2) but when I define a function for byrow like f(x)=x\[1\]\< x\[2\] …

---

## [Error using CPXcallbackgetrelaxationpoint at CPLEX.jl solver specifc callback](https://discourse.julialang.org/t/error-using-cpxcallbackgetrelaxationpoint-at-cplex-jl-solver-specifc-callback/86230)

<div class="topic-metadata">

**Author:** [@afazevedo](https://discourse.julialang.org/u/afazevedo)\
**Replies:** 2\
**Last updated:** [August 25, 2022, 2:55pm UTC](https://discourse.julialang.org/t/error-using-cpxcallbackgetrelaxationpoint-at-cplex-jl-solver-specifc-callback/86230 "2022-08-25T14:55:24Z")

</div>

Hey guys, you know how I get this right? I’m getting an error on “CPXcallbackgetrelaxationpoint” call on CPLEX solver-specific callback. Here’s a example: using JuMP, CPLEX, Test cb\_calls = Clong\[\] function my\_callba…

---

## [Best way to parallelize](https://discourse.julialang.org/t/best-way-to-parallelize/85992)

<div class="topic-metadata">

**Author:** [@Dario-Rosa85](https://discourse.julialang.org/u/Dario-Rosa85)\
**Replies:** 12\
**Last updated:** [August 25, 2022, 2:01pm UTC](https://discourse.julialang.org/t/best-way-to-parallelize/85992 "2022-08-25T14:01:33Z")

</div>

Hi all, I have a large sparse matrix (dimension of order 10^5) which I have to multiply with a matrix of vectors many times. such a matrix of vectors is made out of, say, 500 vectors each of dimension equal to the dimen…

---

## [@btime of cis Function slower than writing it again](https://discourse.julialang.org/t/btime-of-cis-function-slower-than-writing-it-again/86318)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 2\
**Last updated:** [August 25, 2022, 1:13pm UTC](https://discourse.julialang.org/t/btime-of-cis-function-slower-than-writing-it-again/86318 "2022-08-25T13:13:35Z")

</div>

I found a quite strange effect when evaluating the performance of cis via @btime: sz = (2000,2000) a = Float32.(2pi .\* rand(sz...)); function cis\_fast(phi::T) where {T\<:Real} complex(sincos(T(pi/2) .- phi)...) end …

---

## [Makie.jl: Axis3() reverse limits don't work](https://discourse.julialang.org/t/makie-jl-axis3-reverse-limits-dont-work/80438)

<div class="topic-metadata">

**Author:** [@ewillcox](https://discourse.julialang.org/u/ewillcox)\
**Replies:** 5\
**Last updated:** [August 25, 2022, 8:42am UTC](https://discourse.julialang.org/t/makie-jl-axis3-reverse-limits-dont-work/80438 "2022-08-25T08:42:37Z")

</div>

I am attempting to create a plot that has x = longitude, y=latitude, and z= depth. Since z = 0 is the surface, I need to reverse the limits (e.g. zlims!() ). Although this works perfectly for Axes(), it does not for Axi…

---

## [Comparison of integrators DifferentialEquations.jl](https://discourse.julialang.org/t/comparison-of-integrators-differentialequations-jl/86271)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 15\
**Last updated:** [August 25, 2022, 11:11am UTC](https://discourse.julialang.org/t/comparison-of-integrators-differentialequations-jl/86271 "2022-08-25T11:11:56Z")

</div>

I get two different trajectoriesf or identical parametres, time, and initial condition. for comparison i using integrator from Julia and python. I have used several integrators from Julia and python and get completely d…

---

## [Animations in books](https://discourse.julialang.org/t/animations-in-books/86137)

<div class="topic-metadata">

**Author:** [@mcmwright](https://discourse.julialang.org/u/mcmwright)\
**Replies:** 5\
**Last updated:** [August 25, 2022, 10:48am UTC](https://discourse.julialang.org/t/animations-in-books/86137 "2022-08-25T10:48:06Z")

</div>

I teach acoustics and vibration, and I use a lot of Python animations in Jupyter notebooks with my students. It’s useful for them to be able to step back and forth through the animation a frame at a time within the noteb…

---

## [Accessing edges in non-sorted fashion Graphs.jl?](https://discourse.julialang.org/t/accessing-edges-in-non-sorted-fashion-graphs-jl/70261)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 4\
**Last updated:** [August 25, 2022, 9:12am UTC](https://discourse.julialang.org/t/accessing-edges-in-non-sorted-fashion-graphs-jl/70261 "2022-08-25T09:12:40Z")

</div>

g = DiGraph(3); add\_edge!(g, 2, 1) add\_edge!(g, 1, 2) add\_edge!(g, 3, 2) julia\> collect(edges(g)) 3-element Vector{LightGraphs.SimpleGraphs.SimpleEdge{Int64}}: Edge 1 =\> 2 Edge 2 =\> 1 Edge 3 =\> 2 edges collected he…

---

## [MethodError: no method matching ^(::VariableRef, ::Vector{VariableRef})](https://discourse.julialang.org/t/methoderror-no-method-matching-variableref-vector-variableref/86299)

<div class="topic-metadata">

**Author:** [@Eric.O](https://discourse.julialang.org/u/Eric.O)\
**Replies:** 6\
**Last updated:** [August 25, 2022, 4:25am UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-variableref-vector-variableref/86299 "2022-08-25T04:25:18Z")

</div>

Please I need help to get this code running. I am using mosek to solve this optimization problem but I keep getting errors. I tried correcting it severally but I keep getting the error " no method matching ^ ". I will be…

---

## [Makie: axis limits with Inf](https://discourse.julialang.org/t/makie-axis-limits-with-inf/85784)

<div class="topic-metadata">

**Author:** [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Replies:** 5\
**Last updated:** [August 25, 2022, 3:32am UTC](https://discourse.julialang.org/t/makie-axis-limits-with-inf/85784 "2022-08-25T03:32:02Z")

</div>

GLMakie doesn’t seem to adjust axis limits automatically if the data contains an Inf. E,g. using GLMakie lines(1:6,\[-1, -2, 3, -Inf, -10, -11\]) gives You have to use xlims!() and ylims() to see all the data. It see…

---

## [Optimizing a 2 parameter simple ODE](https://discourse.julialang.org/t/optimizing-a-2-parameter-simple-ode/86290)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 1\
**Last updated:** [August 25, 2022, 3:22am UTC](https://discourse.julialang.org/t/optimizing-a-2-parameter-simple-ode/86290 "2022-08-25T03:22:13Z")

</div>

I am having trouble understanding the results of code that optimizes a two parameter ODE. using DifferentialEquations using DiffEqParamEstim using Optim data = \[3140, 3232, 3488, 3415, 3192, 3265, 2961, 3548, 4269, 468…

---

## [Stop Criteria using JuMP with Gurobi when find the first feasible solution](https://discourse.julialang.org/t/stop-criteria-using-jump-with-gurobi-when-find-the-first-feasible-solution/86262)

<div class="topic-metadata">

**Author:** [@Luiz\_Monteiro](https://discourse.julialang.org/u/Luiz_Monteiro)\
**Replies:** 3\
**Last updated:** [August 25, 2022, 12:12am UTC](https://discourse.julialang.org/t/stop-criteria-using-jump-with-gurobi-when-find-the-first-feasible-solution/86262 "2022-08-25T00:12:02Z")

</div>

Hello! I have a MILP problem and I am using Gurobi solver through JuMP in Julia Language. I want to stop the model run when the solver find the first feasible solution. Is there a way to set the stop criteria with this c…

---

## [Constraint to hold on some region](https://discourse.julialang.org/t/constraint-to-hold-on-some-region/86261)

<div class="topic-metadata">

**Author:** [@irezvyakova](https://discourse.julialang.org/u/irezvyakova)\
**Replies:** 5\
**Last updated:** [August 24, 2022, 9:53pm UTC](https://discourse.julialang.org/t/constraint-to-hold-on-some-region/86261 "2022-08-24T21:53:06Z")

</div>

Hi, I am solving an optimization problem of the following interface: find max A such that x^A + y \< = 100 for all 0 \<= x \<= y \<= 1 How can I write the following type of constraint in JuMP? And how it is better to de…

---

## [Plots.heatmap negative axis bug](https://discourse.julialang.org/t/plots-heatmap-negative-axis-bug/86268)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 1\
**Last updated:** [August 24, 2022, 3:49pm UTC](https://discourse.julialang.org/t/plots-heatmap-negative-axis-bug/86268 "2022-08-24T15:49:04Z")

</div>

Ever notice how if you put values for the x-axis or y-axis that start positive and go negative, the heatmap can’t make the plot. FF=rand(10,20) Plots.heatmap(1:20,1:10,FF) # What it should look like Plots.heatmap(1:20…

---

## [Could SciML benefit from a DifferentiationProblem and solvers with caches?](https://discourse.julialang.org/t/could-sciml-benefit-from-a-differentiationproblem-and-solvers-with-caches/86267)

<div class="topic-metadata">

**Author:** [@jt1](https://discourse.julialang.org/u/jt1)\
**Replies:** 1\
**Last updated:** [August 24, 2022, 3:06pm UTC](https://discourse.julialang.org/t/could-sciml-benefit-from-a-differentiationproblem-and-solvers-with-caches/86267 "2022-08-24T15:06:09Z")

</div>

I’ve been using SciML with great success for over a year now. I’m a very big fan. I hope this doesn’t seem rude, but I have 2 propositions which would improve SciML imo. I noticed that my main struggle is calculating d…

---

## [Why do font sizes change with dpi in Plots?](https://discourse.julialang.org/t/why-do-font-sizes-change-with-dpi-in-plots/86220)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 2\
**Last updated:** [August 24, 2022, 2:18pm UTC](https://discourse.julialang.org/t/why-do-font-sizes-change-with-dpi-in-plots/86220 "2022-08-24T14:18:48Z")

</div>

I would like to save plots as .png files at a certain dpi resolution, import into MS Word, then set the width of the image to the correct length according to the dpi setting. However, changing the dpi with Plots.jl in 3 …

---

## [Escaped sequences in \`SubstitutionString\`s](https://discourse.julialang.org/t/escaped-sequences-in-substitutionstring-s/86252)

<div class="topic-metadata">

**Author:** [@Alex\_Tantos](https://discourse.julialang.org/u/Alex_Tantos)\
**Replies:** 4\
**Last updated:** [August 24, 2022, 11:58am UTC](https://discourse.julialang.org/t/escaped-sequences-in-substitutionstring-s/86252 "2022-08-24T11:58:45Z")

</div>

Hi! I tried to create a substiution string with Base.SubstistutionString() that contains an escaped sequence (\\s), but, as expected, it does not work, since the relevant section in the docu says that: SubstitutionStrin…

---

## [GPU performance problem of locally connected layer with Tullio](https://discourse.julialang.org/t/gpu-performance-problem-of-locally-connected-layer-with-tullio/85469)

<div class="topic-metadata">

**Author:** [@Rasmus\_Hoier](https://discourse.julialang.org/u/Rasmus_Hoier)\
**Replies:** 3\
**Last updated:** [August 23, 2022, 8:01am UTC](https://discourse.julialang.org/t/gpu-performance-problem-of-locally-connected-layer-with-tullio/85469 "2022-08-23T08:01:34Z")

</div>

I am using Tullio.jl to implement a locally connected layer, which is like a convolutional layer except there isn’t any weight sharing. I found Tullio very useful for this task, but unfortunately there is a large gap in …

---

## [Visualization attractors DynamicalSystems.jl](https://discourse.julialang.org/t/visualization-attractors-dynamicalsystems-jl/86247)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 0\
**Last updated:** [August 24, 2022, 8:25am UTC](https://discourse.julialang.org/t/visualization-attractors-dynamicalsystems-jl/86247 "2022-08-24T08:25:03Z")

</div>

Is it possible to construct an attractor not in the form of points, but in the form of a continuous curve? I tried to do it and got this result. The curve is not closed due to incorrect visualization or is it becaus…

---

## [Plot, linewidth in legend](https://discourse.julialang.org/t/plot-linewidth-in-legend/57010)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 3\
**Last updated:** [August 23, 2022, 8:14pm UTC](https://discourse.julialang.org/t/plot-linewidth-in-legend/57010 "2022-08-23T20:14:44Z")

</div>

Hello When I have several lines on a plot, the legend is hard to read. The linewidth used in the legend is thin even when it is thick in the plot. Would it be possible to increase the linewidth used in a legend (to ma…

---

## [Change line length in legend with Plots](https://discourse.julialang.org/t/change-line-length-in-legend-with-plots/86219)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 1\
**Last updated:** [August 23, 2022, 7:43pm UTC](https://discourse.julialang.org/t/change-line-length-in-legend-with-plots/86219 "2022-08-23T19:43:49Z")

</div>

Can the length of the example line in the legend be changed? I’m particularly interested in pyplot().

[Previous page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=254)

[Next page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=256)
