inclusion of smaller elements within larger elements; includes html elements, pictures, graphs
Questions tagged [insets]
131 questions
6
votes
1 answer
Java Swing - setting margins on TextArea with Line Border
As the title says, I am simply trying to set the margins (provide some padding) on a TextArea with a LineBorder set. Without setting the Border, .setMargins works fine. Here is the specific chunk of code.
aboutArea = new JTextArea("program info…

Daniel
- 1,920
- 4
- 17
- 35
5
votes
1 answer
Is it possible to do a "zoom inset" using seaborn?
This example from matplotlib shows how to do an inset. However I am working with seaborn, specifically the kdeplot.
sns.kdeplot(y, label='default bw')
sns.kdeplot(y, bw=0.5, label="bw: 0.2", alpha=0.6)
sns.kdeplot(y, linestyle="--", bw=2,…

posdef
- 6,498
- 11
- 46
- 94
5
votes
1 answer
Matplotlib's inset_locator with inverted axes
I want to make a standard inset into my plot. But I don't get how to use the inset_locator.
Here is my code:
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.axes_grid1.inset_locator import inset_axes, mark_inset
x =…

DerWeh
- 1,721
- 1
- 15
- 26
5
votes
3 answers
CSS: Place child element "underneath" parent element's inset box shadow?
Please see this fiddle, or the code below:
http://jsfiddle.net/MegaMatt3/92G6X/9/
HTML:
CSS:
#outer {
border: 1px solid black;
box-shadow: 0 0 20px rgba(0, 0, 0, 1) inset;
height:…

Matt
- 23,363
- 39
- 111
- 152
5
votes
3 answers
CSS3 Box Shadow Fade Out Effect
Is it possible to achieve a Fadeout effect with CSS3 Box Shadow?
Here's what I have so far
This only adds inset/inner shadow to the vertical sides but I need to achieve a fade out effect at the top.
-moz-box-shadow: inset 5px 0 7px -5px #a4a4a4,…

Eric Bergman
- 1,453
- 11
- 46
- 84
5
votes
1 answer
creating inset in matplot lib
I have created a plot in matplot lib and I wish to add an inset to that plot. The data I wish to plot is kept inside of a dictionary that I use in other figures. I'm finding this data inside a loop which I then run this loop again for the subplot.…

Yotam
- 10,295
- 30
- 88
- 128
5
votes
1 answer
How to set insets inside JScrollPane object?
I have JScrollPane which contains only one instance of JTree. How can I set margin around JTree inside of JScrollPane?
I have such a code
tree.setPreferredSize(new Dimension(200, 200));
JScrollPane scrollerTree = new JScrollPane(tree,…

tomas.teicher
- 913
- 3
- 13
- 26
5
votes
1 answer
Text shadow Inset effect css3
I want the inset effect for the above button. The 'text' cancel appears to be type pressed.
I have tried a lot of examples available online but they don't have white background examples.
Help me to gain this effect.
Thanks in advance!!

hkasera
- 2,118
- 3
- 23
- 32
4
votes
0 answers
OnApplyWindowInsetsListener in landscape mode to detect keyboard visibility changes
Thanks to this great answer here: https://stackoverflow.com/a/63595830/741795 we can now track when keyboard is shown in Android... Unfortunateñy I have found some issues with it.
It turns out that for API 29 and inferior, the…

vallllll
- 2,731
- 6
- 43
- 77
4
votes
1 answer
iOS: Increase spacing to UIBarButtonItem
I made a custom UINavigationBar looks like this:[
Now I want to increase spacing between left and left bar button. I tried to do that this way using UIEdgeInsets this way:
self.navigationItem.leftBarButtonItem?.imageInsets = UIEdgeInsetsMake(0, 20,…

Nikita Zernov
- 5,465
- 6
- 39
- 70
4
votes
2 answers
How to feather the edges of an image using CSS
I have an unordered list containing 3 list items. Each list item has an image, and 3 divs containing text. I want the edges of the image to be feathered, by using only CSS.
My site found here currenly has a feathered effect by using the following…

Nova
- 423
- 1
- 10
- 36
4
votes
3 answers
How can you get ggplot2 to display an inset figure when the main one has a log scale?
I have a figure with a log scale on the x-axis. Trying to create an inset figure doesn't work, but seems fine if the scale is changed to linear. Is there a way around this, or is it a limitation of ggplot?
This works:
p = qplot(1:10, 1:10)
g =…

Andrew Steele
- 493
- 6
- 16
3
votes
2 answers
Adding rendering offset to Frame
The scenario here is as so: I am using a Frame object to do some lower-ish level rendering with AWT (no Swing). The only issue is, Frames, when rendering directly to them, do not account for their borders. So, as we all likely know, rendering a…

CoderTheTyler
- 839
- 2
- 11
- 30
3
votes
1 answer
How to change the background colour of a subplot/inset in R?
I'd like to add a subplot to an existing plot in R. The subplot (inset) should have a different background color. I tried the following:
#install.packages("TeachingDemos", dependencies=T)
library(package="TeachingDemos")
d0 <- data.frame(x =…

R_User
- 10,682
- 25
- 79
- 120
2
votes
1 answer
css inset box shadow top,left,right, image at bottom
I need to have box shadow on top, right, and left and an image at the bottom. I tried like this:
container
child-container
giving the top inset show to the container:
box-shadow: 0 5px 5px rgba(0, 0, 0, 0.23) inset;
padding: 8px 0…

Ha0710
- 23
- 1
- 4