<｜begin▁of▁sentence｜>### Instruction:
Given a matplotlib axis with a bounding box from (1, 1) with width and height both equal to 2, can you change the X coordinate of the right side of the bounding box to 4 and display the updated axis?
### Response:
import matplotlib.pyplot as plt
from matplotlib.transforms import Bbox

# create a figure and axis
fig, ax = plt.subplots()

# Set up the bounding box for the axis
bbox = Bbox.from_bounds(1, 1, 2, 2)

# Change the right side of the bounding box
bbox.x1 = 4

# Display the updated bounding box
ax.set_xlim(bbox.x0, bbox.x1)
ax.set_ylim(bbox.y0, bbox.y1)
plt.show()
<|EOT|>
