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

  • SEARCH
  • Home
  • 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 6726487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:56:00+00:00 2026-05-26T09:56:00+00:00

Please Consider : Manipulate[Rasterize[Graphics[{ Black, Rectangle[{0, 0}, {6, 10}], Red, Rectangle[{0, 0}, {2, L}],

  • 0

Please Consider :

 Manipulate[Rasterize[Graphics[{
    Black, Rectangle[{0, 0}, {6, 10}],
    Red, Rectangle[{0, 0}, {2, L}],
    Green, Rectangle[{2, 0}, {4, M}],
    Blue, Rectangle[{4, 0}, {6, S}]},
    ImageSize -> {200, 270},
    ImageSize -> 50]],
    Control@{{L, 1, Style["L", Red, Bold, 24]}, Range[10], 
    ControlType -> Slider, ControlPlacement -> Top, 
    DefaultBaseStyle -> {Bold, 16, FontFamily -> "Helvetica"}, 
    Appearance -> "Labeled", ImageSize -> 200},
    Control@{{M, 1, Style["M", Green, Bold, 24]}, Range[10], 
    ControlType -> Slider, ControlPlacement -> Top, 
    DefaultBaseStyle -> {Bold, 16, FontFamily -> "Helvetica"}, 
    Appearance -> "Labeled", ImageSize -> 200},
    Control@{{S, 1, Style["S", Blue, Bold, 24]}, Range[10], 
    ControlType -> Slider, ControlPlacement -> Top, 
    DefaultBaseStyle -> {Bold, 16, FontFamily -> "Helvetica"}, 
    Appearance -> "Labeled", ImageSize -> 200}]

enter image description here

  • Can I change the Background Color : Black instead of White for example.

  • Why is there so much empty space on the right. I have never been able to match the slider size with the width of the Manipulate being just enveloping the graphics contained?

  • 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-26T09:56:00+00:00Added an answer on May 26, 2026 at 9:56 am

    If you set Paneled -> False in Manipulate, it shrinks the white space around the Graphics. The remaining white can be easily set to have a different background by setting it appropriately in the Graphics[...] command. You can also style the outer panel by setting the background in the BaseStyle for Manipulate. Here’s a slight modification of your code:

    Manipulate[
     Graphics[{Black, Rectangle[{0, 0}, {6, 10}], Red, 
       Rectangle[{0, 0}, {2, L}], Green, Rectangle[{2, 0}, {4, M}], Blue, 
       Rectangle[{4, 0}, {6, S}]}, ImageSize -> {200, 300}, 
      Background -> LightOrange], 
     Control@{{L, 1, Style["L", Red, Bold, 24]}, Range[10], 
       ControlType -> Slider, ImageSize -> Small, ControlPlacement -> Top,
        DefaultBaseStyle -> {Bold, 16, FontFamily -> "Helvetica"}, 
       Appearance -> "Labeled"}, 
     Control@{{M, 1, Style["M", Green, Bold, 24]}, Range[10], 
       ControlType -> Slider, ImageSize -> Small, ControlPlacement -> Top,
        DefaultBaseStyle -> {Bold, 16, FontFamily -> "Helvetica"}, 
       Appearance -> "Labeled"}, 
     Control@{{S, 1, Style["S", Blue, Bold, 24]}, Range[10], 
       ControlType -> Slider, ImageSize -> Small, ControlPlacement -> Top,
        DefaultBaseStyle -> {Bold, 16, FontFamily -> "Helvetica"}, 
       Appearance -> "Labeled"}, BaseStyle -> {Background -> LightPurple},
      Paneled -> False, ImageMargins -> 10]
    

    enter image description here

    I hadn’t noticed in my previous example that the labels had moved slightly upwards. In any case, belisarius’ suggestion of using ImageSize -> Small is simpler, so I’ve adopted it.

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

Sidebar

Related Questions

Please consider : colors = {Red, Green, Blue}; style = {Thickness[.01], Thickness[.01], Thickness[.01]}; cAxes
Please consider : Manipulate[ Row[{ Graphics[Disk[]], Graphics[{ Polygon[{{0, 0}, {3, 0}, {3, 1}, {0,
Please consider the following: <td style=width: 500px;> <div style=width: 400px;>SomeContent</div> </td> For some reason,
Please consider the following HTML: <td> Some Text <table>.....</table> </td> I need to manipulate
Please consider the following problem. I'm writing a quick Manipulate[] program to display a
Please consider this example class: [Serializable] public class SomeClass { private DateTime _SomeDateTime; public
Please consider the following fork() / SIGCHLD pseudo-code. // main program excerpt for (;;)
Please consider the following scenario: map(T,S*) & GetMap(); //Forward decleration map(T, S*) T2pS =
Please consider this code: template<typename T> char (&f(T[1]))[1]; template<typename T> char (&f(...))[2]; int main()
Please consider this site . I'm having trouble stretching the submenu list items in

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.