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
$\begingroup$

Something like:

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

enter image description here

perhaps?

$\endgroup$
  • $\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 Nestor Jun 27 at 19:26
  • $\begingroup$ @LasdesNestor Just replace {plot1, plot2, plot3} with your plots, e.g. Map[#, {Url}] & /@ {Function1, Function2, Function3} $\endgroup$ – Carl Woll Jun 27 at 20:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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