# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?page=243

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

**Page:** 244

---

## [Plots.jl annotation with group colours in grouped plot](https://discourse.julialang.org/t/plots-jl-annotation-with-group-colours-in-grouped-plot/88979)

<div class="topic-metadata">

**Author:** [@klwlevy](https://discourse.julialang.org/u/klwlevy)\
**Replies:** 5\
**Last updated:** [October 20, 2022, 3:56pm UTC](https://discourse.julialang.org/t/plots-jl-annotation-with-group-colours-in-grouped-plot/88979 "2022-10-20T15:56:25Z")

</div>

Dear Plots.jl wizards, could someone give me advice how to best get annotations in the same colour as the lines when using the group option? The following is a working example: using DataFrames, Plots gr(size=(1200, 8…

---

## [Problem with reversediff when using Turing](https://discourse.julialang.org/t/problem-with-reversediff-when-using-turing/88798)

<div class="topic-metadata">

**Author:** [@neuro\_enthusiast](https://discourse.julialang.org/u/neuro_enthusiast)\
**Replies:** 2\
**Last updated:** [October 20, 2022, 10:44am UTC](https://discourse.julialang.org/t/problem-with-reversediff-when-using-turing/88798 "2022-10-20T10:44:41Z")

</div>

I’m receiving the following error when using reversediff for fitting my model. Does anyone have any clue what may be causing this? I’m using reversediff 1.7.0. Forward diff works fine for my model. The sampler is NUTS(20…

---

## [Setting a cookie in http.jl so as to start a session](https://discourse.julialang.org/t/setting-a-cookie-in-http-jl-so-as-to-start-a-session/88572)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 1\
**Last updated:** [October 20, 2022, 2:27am UTC](https://discourse.julialang.org/t/setting-a-cookie-in-http-jl-so-as-to-start-a-session/88572 "2022-10-20T02:27:50Z")

</div>

Hi, I appreciate this will seem obvious to those in the know, but could someone post an example of how to add a cookie server-side to a response that can be used as a session identifier? As a kind of middleware, I think…

---

## [Slicing a SparseAxisArray Variable in JuMP](https://discourse.julialang.org/t/slicing-a-sparseaxisarray-variable-in-jump/88332)

<div class="topic-metadata">

**Author:** [@Janogo](https://discourse.julialang.org/u/Janogo)\
**Replies:** 11\
**Last updated:** [October 19, 2022, 10:55pm UTC](https://discourse.julialang.org/t/slicing-a-sparseaxisarray-variable-in-jump/88332 "2022-10-19T22:55:06Z")

</div>

Hi everyone, I wish to slice a SparseAxisArray Container in JuMP. The documentation says this should work: julia\> x = Containers.@container(\[i = 1:3, j = \[:A, :B\]; i \> 1\], (i, j)) JuMP.Containers.SparseAxisArray{Tuple{…

---

## [Creating fixed model associated with a MIP model using Gurobi in JuMP](https://discourse.julialang.org/t/creating-fixed-model-associated-with-a-mip-model-using-gurobi-in-jump/88961)

<div class="topic-metadata">

**Author:** [@SarojKhanal](https://discourse.julialang.org/u/SarojKhanal)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 8:39pm UTC](https://discourse.julialang.org/t/creating-fixed-model-associated-with-a-mip-model-using-gurobi-in-jump/88961 "2022-10-19T20:39:23Z")

</div>

Hi, I am using JuMP and Gurobi solver to implement a mixed-integer linear program model and trying to access duals. I see \[Model.fixed()\](https://www.gurobi.com/documentation/9.5/refman/py\_model\_fixed.html) as a way to f…

---

## [How to add a title to an existing plot?](https://discourse.julialang.org/t/how-to-add-a-title-to-an-existing-plot/88956)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 5\
**Last updated:** [October 19, 2022, 4:58pm UTC](https://discourse.julialang.org/t/how-to-add-a-title-to-an-existing-plot/88956 "2022-10-19T16:58:07Z")

</div>

Hi all! I’m doing some plots for a series of data. Since I needed to multiply two columns, and plot the output in a box plot, I came up with this: adc\_I\_symbol = Symbol("Arc ADC Current (A)") adc\_V\_symbol = Symbol("Ar…

---

## [TypeError: in typeassert, expected Float64, got a value of type ForwardDiff.Dual{Nothing, Float64, 12}](https://discourse.julialang.org/t/typeerror-in-typeassert-expected-float64-got-a-value-of-type-forwarddiff-dual-nothing-float64-12/88959)

<div class="topic-metadata">

**Author:** [@mauricio\_k8](https://discourse.julialang.org/u/mauricio_k8)\
**Replies:** 8\
**Last updated:** [October 19, 2022, 3:42pm UTC](https://discourse.julialang.org/t/typeerror-in-typeassert-expected-float64-got-a-value-of-type-forwarddiff-dual-nothing-float64-12/88959 "2022-10-19T15:42:59Z")

</div>

Dear all, I am to fit a model that uses an interaction surface in Turing.jl, the interaction surface is a function that is outside the model but gets called inside the model to estimate the competitive equivalence of ind…

---

## [Error when running a simple ANN model in Flux](https://discourse.julialang.org/t/error-when-running-a-simple-ann-model-in-flux/88890)

<div class="topic-metadata">

**Author:** [@imantha](https://discourse.julialang.org/u/imantha)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 3:41pm UTC](https://discourse.julialang.org/t/error-when-running-a-simple-ann-model-in-flux/88890 "2022-10-19T15:41:49Z")

</div>

Hi I am trying to run a simple ANN model in flux but having trouble with understanding the errors. Any idea what I am doing incorrectly # Shapes : X\_train : (204,2) , X\_val : (51,2), y\_train : (204,3), y\_val : (51,3) #…

---

## [Export notebook to html, plots not rendered in html](https://discourse.julialang.org/t/export-notebook-to-html-plots-not-rendered-in-html/88953)

<div class="topic-metadata">

**Author:** [@luboshanus](https://discourse.julialang.org/u/luboshanus)\
**Replies:** 0\
**Last updated:** [October 19, 2022, 10:22am UTC](https://discourse.julialang.org/t/export-notebook-to-html-plots-not-rendered-in-html/88953 "2022-10-19T10:22:42Z")

</div>

Hi, when I export a julia notebook .ipynb to html it does not export images from Plots.jl well and they are depicted as a svg html code not rendered. With PyPlot.jl the figures show as expected. I don’t know if the pro…

---

## [Image Resolution using Algebra of Graphics \[Makie\]](https://discourse.julialang.org/t/image-resolution-using-algebra-of-graphics-makie/88934)

<div class="topic-metadata">

**Author:** [@lgmendes](https://discourse.julialang.org/u/lgmendes)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 12:46am UTC](https://discourse.julialang.org/t/image-resolution-using-algebra-of-graphics-makie/88934 "2022-10-19T00:46:43Z")

</div>

Hi, How can I improve the quality of the figures of the Algebra of Graphics on Pluto? The quality of the output figures on my Laptop was very low (resolution problems ?; my laptop has a 4K display) when compared with th…

---

## [How to fix? ArgumentError: row indices I\[k\] must satisfy 1 \<= I\[k\] \<= m](https://discourse.julialang.org/t/how-to-fix-argumenterror-row-indices-i-k-must-satisfy-1-i-k-m/88931)

<div class="topic-metadata">

**Author:** [@F\_A](https://discourse.julialang.org/u/F_A)\
**Replies:** 2\
**Last updated:** [October 18, 2022, 8:18pm UTC](https://discourse.julialang.org/t/how-to-fix-argumenterror-row-indices-i-k-must-satisfy-1-i-k-m/88931 "2022-10-18T20:18:57Z")

</div>

Hi, I’ve already ask this here. But, perhaps asking here is better. When I try to build a graph from the following arrays of sources, destinations, and weights, the last line returns an error ERROR: ArgumentError: col…

---

## [ReactiveMP hierarchical linear regression](https://discourse.julialang.org/t/reactivemp-hierarchical-linear-regression/88112)

<div class="topic-metadata">

**Author:** [@SebastianCallh](https://discourse.julialang.org/u/SebastianCallh)\
**Replies:** 4\
**Last updated:** [October 18, 2022, 4:24pm UTC](https://discourse.julialang.org/t/reactivemp-hierarchical-linear-regression/88112 "2022-10-18T16:24:24Z")

</div>

Hello, I am playing around with ReactiveMP and wanted to try a hierarchical linear regression model. I tried adapting the linear regression example in the docs, but I cannot figure out how to properly index the group l…

---

## [Is there a package to read EXIF data from a jpg image?](https://discourse.julialang.org/t/is-there-a-package-to-read-exif-data-from-a-jpg-image/35297)

<div class="topic-metadata">

**Author:** [@michael-prange](https://discourse.julialang.org/u/michael-prange)\
**Replies:** 13\
**Last updated:** [October 18, 2022, 2:43pm UTC](https://discourse.julialang.org/t/is-there-a-package-to-read-exif-data-from-a-jpg-image/35297 "2022-10-18T14:43:41Z")

</div>

I’m looking for a package to read EXIF data from a jpg image. I had hoped that ImageMetadata would do that, but but when I load a jpg image, all the metadata is gone, e.g., img=load(“/Users/prange/Downloads/TKNE8480.JPG…

---

## [Preventing ticks from appearing outside of a plot](https://discourse.julialang.org/t/preventing-ticks-from-appearing-outside-of-a-plot/88907)

<div class="topic-metadata">

**Author:** [@Spynel](https://discourse.julialang.org/u/Spynel)\
**Replies:** 2\
**Last updated:** [October 18, 2022, 12:42pm UTC](https://discourse.julialang.org/t/preventing-ticks-from-appearing-outside-of-a-plot/88907 "2022-10-18T12:42:01Z")

</div>

Hello ! I am working on a code that’s supposed to display a plot with dates on the X axis. That part works, but when moving the plot left and right, the ticks on the x axis stay displayed even when they’re outside of th…

---

## [Maximize sum of the piecewise function](https://discourse.julialang.org/t/maximize-sum-of-the-piecewise-function/88882)

<div class="topic-metadata">

**Author:** [@t.sh](https://discourse.julialang.org/u/t.sh)\
**Replies:** 2\
**Last updated:** [October 18, 2022, 5:00am UTC](https://discourse.julialang.org/t/maximize-sum-of-the-piecewise-function/88882 "2022-10-18T05:00:03Z")

</div>

I am the new in JuMP package, and I am trying to solve the optimization with a piecewise function My maximum working example looks as follows: using JuMP, Ipopt function sum\_rate(β::T ...) where {T \<: Real} rate =…

---

## [Non-convex loss functions with Flux.jl](https://discourse.julialang.org/t/non-convex-loss-functions-with-flux-jl/88273)

<div class="topic-metadata">

**Author:** [@MattSainsbury-Dale](https://discourse.julialang.org/u/MattSainsbury-Dale)\
**Replies:** 4\
**Last updated:** [October 18, 2022, 3:19am UTC](https://discourse.julialang.org/t/non-convex-loss-functions-with-flux-jl/88273 "2022-10-18T03:19:49Z")

</div>

I am interested in training a Flux neural network under a non-convex loss function. Specifically, the loss function L\_P(x, y) = (|x - y|)^P for some 0 \< P \< 1, which is implemented in LossFunctions.jl as LPDistLoss. Is…

---

## [How to make this plot in Julia?](https://discourse.julialang.org/t/how-to-make-this-plot-in-julia/75065)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 29\
**Last updated:** [October 17, 2022, 8:15pm UTC](https://discourse.julialang.org/t/how-to-make-this-plot-in-julia/75065 "2022-10-17T20:15:54Z")

</div>

How do I make something similar to the following plot in Julia? using RCall, DataFrames, Random Random.seed!(123) d = DataFrame(name = repeat(\["A","B","C","D","E","F"\], inner=4), time=repeat(\[0,1,3,6\], outer=6), …

---

## [How to efficiently evaluate a Flux.jl neural network millions of times on the GPU?](https://discourse.julialang.org/t/how-to-efficiently-evaluate-a-flux-jl-neural-network-millions-of-times-on-the-gpu/88864)

<div class="topic-metadata">

**Author:** [@PolarizedPoutine](https://discourse.julialang.org/u/PolarizedPoutine)\
**Replies:** 3\
**Last updated:** [October 17, 2022, 7:36pm UTC](https://discourse.julialang.org/t/how-to-efficiently-evaluate-a-flux-jl-neural-network-millions-of-times-on-the-gpu/88864 "2022-10-17T19:36:04Z")

</div>

I have trained a small Flux.jl neural network that I am embedding into a larger model but I need to use the neural network to make millions (billions?) of predictions as part of running this larger model. Since the larg…

---

## [Edge-based partitioning with vertex separators of oriented graphs](https://discourse.julialang.org/t/edge-based-partitioning-with-vertex-separators-of-oriented-graphs/88855)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 6:47pm UTC](https://discourse.julialang.org/t/edge-based-partitioning-with-vertex-separators-of-oriented-graphs/88855 "2022-10-17T18:47:11Z")

</div>

I am searching for an algorithm that can create balanced edge-based partitions with vertex separators of oriented graphs. My understanding is that the METIS\_PartGraphKway function performs a vertex-based partition with e…

---

## [Animating a bar representing fractions that change with time](https://discourse.julialang.org/t/animating-a-bar-representing-fractions-that-change-with-time/88806)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 8\
**Last updated:** [October 17, 2022, 5:15pm UTC](https://discourse.julialang.org/t/animating-a-bar-representing-fractions-that-change-with-time/88806 "2022-10-17T17:15:26Z")

</div>

I want to make a single stacked bar where the differerent colors will show the fraction of some quantity. I get errors when I try to animate it: MWE using GLMakie fig = Figure() COLORS = \[ "#7143E0", "#0A9A84",…

---

## [Exact the sequence of chr1 in XAM.jl](https://discourse.julialang.org/t/exact-the-sequence-of-chr1-in-xam-jl/88163)

<div class="topic-metadata">

**Author:** [@zhangchunyong](https://discourse.julialang.org/u/zhangchunyong)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 1:37pm UTC](https://discourse.julialang.org/t/exact-the-sequence-of-chr1-in-xam-jl/88163 "2022-10-17T13:37:51Z")

</div>

I only want to exact the sequence of chr1 not all. using XAM bamfile="..." reader=open(BAM.Reader,bamfile) for record in reader println(BAM.refname(record)) end This returns all the chromosomes.I just want chr1.But…

---

## [How to display "Angstrom" symbol as an axis label in Makie?](https://discourse.julialang.org/t/how-to-display-angstrom-symbol-as-an-axis-label-in-makie/88827)

<div class="topic-metadata">

**Author:** [@PuDu-Astro](https://discourse.julialang.org/u/PuDu-Astro)\
**Replies:** 5\
**Last updated:** [October 17, 2022, 12:18pm UTC](https://discourse.julialang.org/t/how-to-display-angstrom-symbol-as-an-axis-label-in-makie/88827 "2022-10-17T12:18:30Z")

</div>

Angstrom is commonly used as an unit in astronomy. In LaTeX, we can easily input it using “\\AA”. I tried to display it in Makie as an axis label, but failed. L"\\AA" doesn’t work. For example: using CairoMakie, LaTeXStr…

---

## [Substitution of products of symbolic variables](https://discourse.julialang.org/t/substitution-of-products-of-symbolic-variables/88733)

<div class="topic-metadata">

**Author:** [@afossa](https://discourse.julialang.org/u/afossa)\
**Replies:** 3\
**Last updated:** [October 17, 2022, 11:42am UTC](https://discourse.julialang.org/t/substitution-of-products-of-symbolic-variables/88733 "2022-10-17T11:42:06Z")

</div>

I am trying to simplify a symbolic expression by replacing products of symbolic variables, eg. x\*y, with a single new variable, e.g. z, but I cannot succeed in doing it. Any suggestion? MWE: using Symbolics using Symbo…

---

## [Introductory book recommendations](https://discourse.julialang.org/t/introductory-book-recommendations/45066)

<div class="topic-metadata">

**Author:** [@anon37204545](https://discourse.julialang.org/u/anon37204545)\
**Replies:** 5\
**Last updated:** [October 17, 2022, 8:11am UTC](https://discourse.julialang.org/t/introductory-book-recommendations/45066 "2022-10-17T08:11:04Z")

</div>

I’m looking for good textbooks about quantum computing, quantum informatics and quantum biology. Any PDF availabe online for free is acceptable. Do you have any recommendations? Preferrably, they should be at introducto…

---

## [HiGHS duals for MIPs](https://discourse.julialang.org/t/highs-duals-for-mips/88817)

<div class="topic-metadata">

**Author:** [@adow031](https://discourse.julialang.org/u/adow031)\
**Replies:** 2\
**Last updated:** [October 17, 2022, 5:15am UTC](https://discourse.julialang.org/t/highs-duals-for-mips/88817 "2022-10-17T05:15:25Z")

</div>

I’m testing out the HiGHS optimizer in JuMP, and have found that HiGHS returns duals (they all seem to be 0) for MIPs. All other optimizers that I’ve used return errors when attempting to find duals of MIPs: ERROR: Asse…

---

## [Cannot warmstart same HiGHS model without rebuilding](https://discourse.julialang.org/t/cannot-warmstart-same-highs-model-without-rebuilding/88816)

<div class="topic-metadata">

**Author:** [@obar](https://discourse.julialang.org/u/obar)\
**Replies:** 2\
**Last updated:** [October 17, 2022, 3:56am UTC](https://discourse.julialang.org/t/cannot-warmstart-same-highs-model-without-rebuilding/88816 "2022-10-17T03:56:00Z")

</div>

Hi, Ran into a bit of a weird issue with trying to use the HiGHS solver for sequential objective optimisation. When trying to use set\_start\_value for warmstarting, it works perfectly fine if the second objective model …

---

## [Implement a REST server in Julia?](https://discourse.julialang.org/t/implement-a-rest-server-in-julia/9117)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 19\
**Last updated:** [October 17, 2022, 2:20am UTC](https://discourse.julialang.org/t/implement-a-rest-server-in-julia/9117 "2022-10-17T02:20:48Z")

</div>

I would like to build a REST API for a Julia code. I am currently evaluating whether I use also Julia to implement the REST server or if I use another language (e.g. Python) for the server part. These are the package th…

---

## [Makie - Optimal way of drawing milions of data points](https://discourse.julialang.org/t/makie-optimal-way-of-drawing-milions-of-data-points/78748)

<div class="topic-metadata">

**Author:** [@mkoculak](https://discourse.julialang.org/u/mkoculak)\
**Replies:** 13\
**Last updated:** [October 17, 2022, 1:42am UTC](https://discourse.julialang.org/t/makie-optimal-way-of-drawing-milions-of-data-points/78748 "2022-10-17T01:42:13Z")

</div>

Hi, first of all, big thanks to authors and contributors of Makie! This is the package that dragged me into Julia and it works so well for my use cases, that it feels illegal. :slight\_smile: I am working with long tim…

---

## [Tutorials for Modeling Toolkit look a little messed up](https://discourse.julialang.org/t/tutorials-for-modeling-toolkit-look-a-little-messed-up/88199)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 3\
**Last updated:** [October 16, 2022, 6:33pm UTC](https://discourse.julialang.org/t/tutorials-for-modeling-toolkit-look-a-little-messed-up/88199 "2022-10-16T18:33:28Z")

</div>

https://tutorials.sciml.ai/stable/ode\_extras/01-ModelingToolkit/ This is probably not the place to report this, but I wanted to mark it down before I forget. Looks like some errors and screen dumps are happening in the…

---

## [Plots saved to file loose colour](https://discourse.julialang.org/t/plots-saved-to-file-loose-colour/88612)

<div class="topic-metadata">

**Author:** [@evan-wehi](https://discourse.julialang.org/u/evan-wehi)\
**Replies:** 6\
**Last updated:** [October 16, 2022, 5:51pm UTC](https://discourse.julialang.org/t/plots-saved-to-file-loose-colour/88612 "2022-10-16T17:51:19Z")

</div>

I’m saving Gadfly plots as PNG but the colour is stripped from them, making them useless. The code looks like: using DataFrames, Gadfly, Cairo layers = Plot\[\] for protein in proteins l = plot(f4p, x=protein, color=:do…

[Previous page](https://discourse.julialang.org/c/domain/10.md?page=242)

[Next page](https://discourse.julialang.org/c/domain/10.md?page=244)
