# Latest

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

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

**Page:** 1360

---

## [How to plot mean +/- deviation in Plots.jl?](https://discourse.julialang.org/t/how-to-plot-mean-deviation-in-plots-jl/1975)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 22\
**Last updated:** [June 15, 2021, 6:07pm UTC](https://discourse.julialang.org/t/how-to-plot-mean-deviation-in-plots-jl/1975 "2021-06-15T18:07:05Z")

</div>

Consider the example below: using Plots xs = linspace(1,100) μs = log.(xs) σs = rand(length(xs)) plot(xs,μs,grid=false,yerror=σs) Is there any way to replace the error bars by a shaded transparent area with the sam…

---

## [Learning Julia - Ramanujan Approximation for Pi](https://discourse.julialang.org/t/learning-julia-ramanujan-approximation-for-pi/62959)

<div class="topic-metadata">

**Author:** [@aiexplorations](https://discourse.julialang.org/u/aiexplorations)\
**Replies:** 2\
**Last updated:** [June 15, 2021, 4:44pm UTC](https://discourse.julialang.org/t/learning-julia-ramanujan-approximation-for-pi/62959 "2021-06-15T16:44:12Z")

</div>

Hi all, I’m new to Julia and am learning the ropes thanks to the MIT course and books like Think Julia. I’m working through a few simple problems to start with, and wanted some help with this one. Implementing Ramanuja…

---

## [HDF5: compound data types](https://discourse.julialang.org/t/hdf5-compound-data-types/62699)

<div class="topic-metadata">

**Author:** [@simon-anders](https://discourse.julialang.org/u/simon-anders)\
**Replies:** 1\
**Last updated:** [June 15, 2021, 4:41pm UTC](https://discourse.julialang.org/t/hdf5-compound-data-types/62699 "2021-06-15T16:41:50Z")

</div>

Hi, using Python, I’ve created an HDF5 file with a compound data type. I can read the data in Julia, but I do not manage to create such a file from Julia. Here, I read the file I’ve created in Python: julia\> using HDF…

---

## [Implementing Object Methods and Events?](https://discourse.julialang.org/t/implementing-object-methods-and-events/62955)

<div class="topic-metadata">

**Author:** [@The\_Theory](https://discourse.julialang.org/u/The_Theory)\
**Replies:** 6\
**Last updated:** [June 15, 2021, 4:10pm UTC](https://discourse.julialang.org/t/implementing-object-methods-and-events/62955 "2021-06-15T16:10:20Z")

</div>

I’m completely new to Julia (started learning it in my off-time a week ago), and one thing that I’ve had a LOT of trouble finding documentation about is Objects, Methods and Events. By a lot of trouble, what I mean is th…

---

## [How to loop in script properly? (Perhaps CUDA specific)](https://discourse.julialang.org/t/how-to-loop-in-script-properly-perhaps-cuda-specific/62939)

<div class="topic-metadata">

**Author:** [@ChunXi\_Zhang](https://discourse.julialang.org/u/ChunXi_Zhang)\
**Replies:** 11\
**Last updated:** [June 15, 2021, 3:44pm UTC](https://discourse.julialang.org/t/how-to-loop-in-script-properly-perhaps-cuda-specific/62939 "2021-06-15T15:44:58Z")

</div>

I have some code which is slow in the first run, for example my script is like: function loop(x) # something very complicated. end function main() t = time() x = rand(100) for i in 1:3 loop(x) …

---

## [Agents.jl Schedulers not defined error](https://discourse.julialang.org/t/agents-jl-schedulers-not-defined-error/62952)

<div class="topic-metadata">

**Author:** [@Rajith\_Vidanaarachch](https://discourse.julialang.org/u/Rajith_Vidanaarachch)\
**Replies:** 1\
**Last updated:** [June 15, 2021, 3:43pm UTC](https://discourse.julialang.org/t/agents-jl-schedulers-not-defined-error/62952 "2021-06-15T15:43:22Z")

</div>

Hi, I’m new to Agents.jl and Julia. I’ve been trying out the example from https://juliadynamics.github.io/Agents.jl/stable/examples/schelling I get the error UndefVarError: Schedulers not defined when trying to run the…

---

## [Writing this inner constructor with a macro](https://discourse.julialang.org/t/writing-this-inner-constructor-with-a-macro/62945)

<div class="topic-metadata">

**Author:** [@Amval](https://discourse.julialang.org/u/Amval)\
**Replies:** 2\
**Last updated:** [June 15, 2021, 2:16pm UTC](https://discourse.julialang.org/t/writing-this-inner-constructor-with-a-macro/62945 "2021-06-15T14:16:36Z")

</div>

Hello, I am trying to write a macro to reduce some boilerplate. I have some builder method for structs to do some complicated transformations on a dict. I am copypasting something similar to this over and over: struct …

---

## [PGFPlotsX remove legend box (border)](https://discourse.julialang.org/t/pgfplotsx-remove-legend-box-border/44992)

<div class="topic-metadata">

**Author:** [@AAL](https://discourse.julialang.org/u/AAL)\
**Replies:** 8\
**Last updated:** [June 15, 2021, 2:12pm UTC](https://discourse.julialang.org/t/pgfplotsx-remove-legend-box-border/44992 "2021-06-15T14:12:44Z")

</div>

Hi, I am trying to remove the legend box in a plot with the pgfplotsx backend and I cannot find the right attribute. I know I can easily remove the box in the generated tex file (see here) but I would like to be able to…

---

## [MakieGallery's fate](https://discourse.julialang.org/t/makiegallerys-fate/58131)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 12\
**Last updated:** [June 15, 2021, 2:10pm UTC](https://discourse.julialang.org/t/makiegallerys-fate/58131 "2021-06-15T14:10:01Z")

</div>

According to its README, “MakieGallery is deprecated. Testing got moved to AbstractPlotting, and the Makie documentation contains now important examples.” The Makie docs are OK for learning the basics but MakieGallery w…

---

## [How to create a slider of a point in a graph](https://discourse.julialang.org/t/how-to-create-a-slider-of-a-point-in-a-graph/62929)

<div class="topic-metadata">

**Author:** [@Izzani\_Nizam](https://discourse.julialang.org/u/Izzani_Nizam)\
**Replies:** 1\
**Last updated:** [June 15, 2021, 1:52pm UTC](https://discourse.julialang.org/t/how-to-create-a-slider-of-a-point-in-a-graph/62929 "2021-06-15T13:52:47Z")

</div>

for example: I plotted this graph using Plots xs = \[x₁, x₂\] ys = \[y₁, y₂\] plot(xs, ys) \[/quote\] how can I make slider for the points (Xs,Xy) ? thank you

---

## [Customizing SharedArray](https://discourse.julialang.org/t/customizing-sharedarray/62933)

<div class="topic-metadata">

**Author:** [@FredericN](https://discourse.julialang.org/u/FredericN)\
**Replies:** 4\
**Last updated:** [June 15, 2021, 1:44pm UTC](https://discourse.julialang.org/t/customizing-sharedarray/62933 "2021-06-15T13:44:07Z")

</div>

When creating a SharedArray as in using SharedArrays using Distributed addprocs(4) a = SharedArray{Float64}(40) the partitioning of entries is made automatically. Does anyone knows if it is possible to set my own pa…

---

## [ContourPlot3D (surface) in Julia](https://discourse.julialang.org/t/contourplot3d-surface-in-julia/62923)

<div class="topic-metadata">

**Author:** [@maoc](https://discourse.julialang.org/u/maoc)\
**Replies:** 2\
**Last updated:** [June 15, 2021, 12:52pm UTC](https://discourse.julialang.org/t/contourplot3d-surface-in-julia/62923 "2021-06-15T12:52:28Z")

</div>

I am trying to plot the 3D surface given by the zero of a function. I have a complicated function given by function mcl(Y,w) BLAH BLAH end Where Y is a 2-element Array{Int64,1} and w is a real number. For example mcl(…

---

## [\[ANN\] eQuilibrator.jl - an interface to equilibrator\_api](https://discourse.julialang.org/t/ann-equilibrator-jl-an-interface-to-equilibrator-api/62946)

<div class="topic-metadata">

**Author:** [@Elmo](https://discourse.julialang.org/u/Elmo)\
**Replies:** 0\
**Last updated:** [June 15, 2021, 12:43pm UTC](https://discourse.julialang.org/t/ann-equilibrator-jl-an-interface-to-equilibrator-api/62946 "2021-06-15T12:43:29Z")

</div>

Thermodynamic data is useful for constraining the direction and rate of chemical reactions. Gibbs free energy is often used to analyze biological systems, and large databases exist to calculate the Gibbs free energy of r…

---

## [Using VSCode and Julia Plugin, User Input Doesn't Seem To Work](https://discourse.julialang.org/t/using-vscode-and-julia-plugin-user-input-doesnt-seem-to-work/62919)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 2\
**Last updated:** [June 15, 2021, 12:09pm UTC](https://discourse.julialang.org/t/using-vscode-and-julia-plugin-user-input-doesnt-seem-to-work/62919 "2021-06-15T12:09:47Z")

</div>

I’m unable to properly accept user input from the terminal in VS Code. I have a file called asking-for-user-input.jl, that has the following code: function main() println("Enter your first name:") first\_name = rea…

---

## [Exporting Cairo Makie to tikz](https://discourse.julialang.org/t/exporting-cairo-makie-to-tikz/62895)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 3\
**Last updated:** [June 15, 2021, 11:32am UTC](https://discourse.julialang.org/t/exporting-cairo-makie-to-tikz/62895 "2021-06-15T11:32:27Z")

</div>

I am trying to pycall svg2tikz so that I can build functions to plot CairoMakie to tikz, for seamless integration with LaTeX docs. I’ve edited the post title, as it’s specifically about CairoMakie output now. The follow…

---

## [JuliaInXL package future](https://discourse.julialang.org/t/juliainxl-package-future/62941)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 0\
**Last updated:** [June 15, 2021, 10:42am UTC](https://discourse.julialang.org/t/juliainxl-package-future/62941 "2021-06-15T10:42:24Z")

</div>

I notice JuliaInXL has changed from paid to a standard JuliaPro package. Since (I believe) VS Code is the preferred editor going forward which isn’t supported by JuliaPro, would it be possible to make JuliaInXL just a s…

---

## [Help with JuMP syntax for objective function](https://discourse.julialang.org/t/help-with-jump-syntax-for-objective-function/62934)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.julialang.org/u/Thomas)\
**Replies:** 2\
**Last updated:** [June 15, 2021, 10:29am UTC](https://discourse.julialang.org/t/help-with-jump-syntax-for-objective-function/62934 "2021-06-15T10:29:42Z")

</div>

When creating a model to solve SDP @variable(model, X\[1:n,1:n\], PSD) @constraint(model, A\*vec(X).==b) @objective(model, Min, c\*vec(X)) I got an error ERROR: MethodError: no method matching \*(::SparseVector{Int64, Int6…

---

## [Distributed matrix](https://discourse.julialang.org/t/distributed-matrix/62225)

<div class="topic-metadata">

**Author:** [@FredericN](https://discourse.julialang.org/u/FredericN)\
**Replies:** 2\
**Last updated:** [June 15, 2021, 9:26am UTC](https://discourse.julialang.org/t/distributed-matrix/62225 "2021-06-15T09:26:03Z")

</div>

Dear All, I would like some advice. Which package (if any) implements distributed (in the MPI fashion) matrices and is compatible with other Krylov solvers. Thanks

---

## [Indexing a document using Dictionary](https://discourse.julialang.org/t/indexing-a-document-using-dictionary/62724)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 10\
**Last updated:** [June 15, 2021, 8:54am UTC](https://discourse.julialang.org/t/indexing-a-document-using-dictionary/62724 "2021-06-15T08:54:22Z")

</div>

Dear All, I would like to ask, if there is a Dict that would be suitable for indexing a large collection of documents. Specifically imagine that each document is composed by a set of words doc1 = \[1,2,3,4,5,\] doc2 = \[3…

---

## [Free Workshop on Bayesian Statistics using Turing.jl](https://discourse.julialang.org/t/free-workshop-on-bayesian-statistics-using-turing-jl/62571)

<div class="topic-metadata">

**Author:** [@Storopoli](https://discourse.julialang.org/u/Storopoli)\
**Replies:** 5\
**Last updated:** [June 15, 2021, 8:11am UTC](https://discourse.julialang.org/t/free-workshop-on-bayesian-statistics-using-turing-jl/62571 "2021-06-15T08:11:38Z")

</div>

I’ve got invited to give a workshop about Bayesian Inference using Julia and Turing.jl at Stuttgart Julia Programming Language Meetup. Saturday 12th June. The workshop will be using a Reactive Pluto notebook. The code …

---

## [Model of accounts](https://discourse.julialang.org/t/model-of-accounts/62912)

<div class="topic-metadata">

**Author:** [@elgator](https://discourse.julialang.org/u/elgator)\
**Replies:** 1\
**Last updated:** [June 15, 2021, 7:54am UTC](https://discourse.julialang.org/t/model-of-accounts/62912 "2021-06-15T07:54:11Z")

</div>

Hi, I need a piece of architecture advice. I am trying to implement a DSL for financial modelling (3 statement financial model, not the asset-valuaion one). Conceptually the model is quite straitforward: given a number …

---

## [Substitute an equation](https://discourse.julialang.org/t/substitute-an-equation/62913)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 3\
**Last updated:** [June 15, 2021, 7:15am UTC](https://discourse.julialang.org/t/substitute-an-equation/62913 "2021-06-15T07:15:30Z")

</div>

If I have two equations how do I combine them? Do I have to write something like this or is there a shorter way? Maybe something like solve(eq1,eq2,a)? using Symbolics @vars a b c eq1 = ( a = b + c) eq2 = ( b = 3c - a)…

---

## [Struct instance that behaves as an array as well](https://discourse.julialang.org/t/struct-instance-that-behaves-as-an-array-as-well/62927)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 1\
**Last updated:** [June 15, 2021, 6:42am UTC](https://discourse.julialang.org/t/struct-instance-that-behaves-as-an-array-as-well/62927 "2021-06-15T06:42:34Z")

</div>

For sol::ODESolution from DifferentialEquations.jl, it can be called as sol\[1:2, 2:3\] in addition to having properties to call and utilize. How does one design a struct whose instances behave as such?

---

## [Unsupported constraints in saving JuMP models](https://discourse.julialang.org/t/unsupported-constraints-in-saving-jump-models/62925)

<div class="topic-metadata">

**Author:** [@anon94806364](https://discourse.julialang.org/u/anon94806364)\
**Replies:** 1\
**Last updated:** [June 15, 2021, 6:38am UTC](https://discourse.julialang.org/t/unsupported-constraints-in-saving-jump-models/62925 "2021-06-15T06:38:56Z")

</div>

Are there certain types of JuMP constraints that are not amenable for saving under specific formats? Recently I have converted an ILP from Python to Julia, where I’ve found building the model is significantly faster! I’…

---

## [Write method for object](https://discourse.julialang.org/t/write-method-for-object/62915)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 8\
**Last updated:** [June 15, 2021, 2:15am UTC](https://discourse.julialang.org/t/write-method-for-object/62915 "2021-06-15T02:15:49Z")

</div>

struct Foo end open("/tmp/foo", write=true) do io write(io, Foo()) end ERROR: LoadError: MethodError: no method matching write(::IOStream, ::Foo) Closest candidates are: write(::IO, ::Any) at io.jl:611 write(:…

---

## [Efficient way to solve similar optimization problems with JuMP](https://discourse.julialang.org/t/efficient-way-to-solve-similar-optimization-problems-with-jump/62793)

<div class="topic-metadata">

**Author:** [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)\
**Replies:** 8\
**Last updated:** [June 14, 2021, 11:36pm UTC](https://discourse.julialang.org/t/efficient-way-to-solve-similar-optimization-problems-with-jump/62793 "2021-06-14T23:36:55Z")

</div>

I would like to solve some similar optimization problems, which are mathematical formulation (cost and constraints) are same, but just model parameter values or size of model parameters are different, in JuMP. Currently…

---

## [Want more Unicode sub/superscripts? Need volunteer font designers](https://discourse.julialang.org/t/want-more-unicode-sub-superscripts-need-volunteer-font-designers/47871)

<div class="topic-metadata">

**Author:** [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Replies:** 8\
**Last updated:** [June 14, 2021, 11:16pm UTC](https://discourse.julialang.org/t/want-more-unicode-sub-superscripts-need-volunteer-font-designers/47871 "2021-06-14T23:16:27Z")

</div>

One of the nice little things about Julia programming has been the broad support for Unicode identifiers — variables like α̂₂′ and operators like ⊕. However, a common source of frustration is the paucity of available su…

---

## [Triangle in graph in Julia](https://discourse.julialang.org/t/triangle-in-graph-in-julia/62917)

<div class="topic-metadata">

**Author:** [@Izzani\_Nizam](https://discourse.julialang.org/u/Izzani_Nizam)\
**Replies:** 1\
**Last updated:** [June 14, 2021, 10:45pm UTC](https://discourse.julialang.org/t/triangle-in-graph-in-julia/62917 "2021-06-14T22:45:37Z")

</div>

how could I draw a parallel line and perpendicular line of a straight line? could I make a triangle shape in Julia just like the Pythagoras theorem? thank you

---

## [JuMP+EAGO+@NLexpressions gives numeric instability](https://discourse.julialang.org/t/jump-eago-nlexpressions-gives-numeric-instability/61093)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 5\
**Last updated:** [June 14, 2021, 10:38pm UTC](https://discourse.julialang.org/t/jump-eago-nlexpressions-gives-numeric-instability/61093 "2021-06-14T22:38:04Z")

</div>

I want to use EAGO.jl as an alternative solver to ipopt for nonlinear problems. I ran the example from the website (GitHub - PSORLab/EAGO.jl: A development environment for robust and global optimization) and it works fin…

---

## [Slider of a point in a graph](https://discourse.julialang.org/t/slider-of-a-point-in-a-graph/62918)

<div class="topic-metadata">

**Author:** [@Izzani\_Nizam](https://discourse.julialang.org/u/Izzani_Nizam)\
**Replies:** 1\
**Last updated:** [June 14, 2021, 10:16pm UTC](https://discourse.julialang.org/t/slider-of-a-point-in-a-graph/62918 "2021-06-14T22:16:36Z")

</div>

can I make a slider to move a point in a graph. can the points move in a straight line? thank you

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

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