0
$\begingroup$

This is the code I use TabView[Map[#, {Url}] & /@ {Function1, Function2, Function3}] to generate 3 different plots of a protein, but how can I add the names of the functions to the tab view, instead of showing number 1,2 and 3?

enter image description here This image shows 3 different proteins.

$\endgroup$

1 Answer 1

2
$\begingroup$

Something like:

TabView[MapThread[#1 -> #2&, {{label1, label2, label3}, {plot1, plot2, plot3}}]]

enter image description here

perhaps?

$\endgroup$
2
  • $\begingroup$ The thing is that when using MapThread[], the function needs a pair of arguments and my functions only have one argument. Here is my exact code: TabView[MapThread[#, {Url1}] & /@ {ProteinColourBlue, ProteinColourRed, ProteinColorYellow}]. What I want is to put the title of the functions on the the tab button. $\endgroup$
    – Las Des
    Commented Jun 27, 2019 at 19:26
  • $\begingroup$ @LasdesNestor Just replace {plot1, plot2, plot3} with your plots, e.g. Map[#, {Url}] & /@ {Function1, Function2, Function3} $\endgroup$
    – Carl Woll
    Commented Jun 27, 2019 at 20:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.