Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6006711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:34:45+00:00 2026-05-23T01:34:45+00:00

Considering the following data example : data ={ {a, b, c, d, e}, {1,

  • 0

Considering the following data example :

data ={
       {"a", "b", "c", "d", "e"},
       {1, 2, 3, 4, 5},
       {11, 12, 13, 14, 15}, 
       {21, 22, 23, 24, 25}
      };

And the following Function to generate customized Tabular representation :

(and you can refer to Mr.Wizard extensive solution for customizable tabular representations.
Ultimatly I would also manipulate the options he offered, for now )

DataSampleX[data_, linesNumber_, range1_, range2_, color1_, color2_, color3_] :=

Grid[
 Join[
      {Range[range1, range2]}, {Map[Rotate[Text[#], 90 Degree] &,
       data[[1, range1 ;; range2]]]}, 
       data[[2 ;; linesNumber, range1 ;; range2]]
     ],
       Background    -> {{{{color1, color2}}, {1 -> color3}}},
       Dividers      -> {All, {1 -> True, 2 -> True, 3 -> True,0 -> True}},
       ItemSize      -> {1 -> Automatic, Automatic},
       Alignment     -> Top,
       Frame         -> True,
       FrameStyle    -> Thickness[2],
       ItemStyle     -> {Automatic, Automatic, 
                        {{1, 1}, {1, Length[data]}} ->Directive[FontSize -> 
                        15, Black, Bold]}
    ];

I would like to use Manipulate or Dynamic to display parts of my data using the above.
This choosing the range of column I want to display, the number of lines to display as well as colors.

Below is my unfinished attempt.

PopupMenu[Dynamic[range1], Range[1, Length@data[[1]] - 1, 1]]
PopupMenu[Dynamic[range2], Range[2, Length@data[[1]], 1]]
PopupMenu[Dynamic[linesNumber], Range[2, Length@data[[All, 1]] - 1, 1]]
Dynamic[DataSampleX[data, linesNumber, range1, range2, LightBlue, 
LightGray, LightYellow]]

enter image description here

enter image description here

How could I use setter to update the Color Value ?

Is it possible to actually have this in a Manipulate window ?

Any other suggestion to make this efficient look good is welcome.

–EDIT : What I am able to do now thanks to Belisarius solution below :

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:34:45+00:00Added an answer on May 23, 2026 at 1:34 am

    Try something like:

    colsel = (#->Graphics[{#, Disk[]},ImageSize -> 15])& /@ColorData[1, "ColorList"];
    s[x_] := Style[x, Black, Bold, 12];
    ct = ControlType -> PopupMenu;
    
    Manipulate[
     DataSampleX[data, linesNumber, range1, range2, color1, color2, color3],
     Row[{
       Column[{
        Control@{{range1,      1, s@"Range1"}, Range[1, Length@data[[1]] - 1],  ct}, 
        Control@{{range2,      2, s@"Range2"}, Range[2, Length@data[[1]] - 1],  ct}, 
        Control@{{linesNumber, 2, s@"Lines"},  Range[2,Length@data[[All, 1]]-1],ct}}],
       Spacer[20],
       Column[{
         Control@{{color1, colsel[[1, 1]], s@"Color 1"}, colsel, ct}, 
         Control@{{color2, colsel[[2, 1]], s@"Color 2"}, colsel, ct}, 
         Control@{{color3, colsel[[3, 1]], s@"Color 3"}, colsel, ct}}]
     }]]
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use the following function to perform a conditional operation on a List: consider[data_,
Considering the following code public bool GetFalse() { return false; } public bool GetTrue()
I have following scenario: Lets say we have two different webparts operating on the
I'm considering to use to implement a cache either JBoss Cache or Ehcache. After
what seemed a simple task, came to be a challenge for me. I have
I'm currently building a system where S3 will be used as a persistent hash-set
My DB have two tables - Question and Topic. To implement many-to-many relation, there
I have a Java app, connecting through TCP socket to a server developed in
I am experiencing a very strange issue with custom conflict handling using the Sync

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.