Question: Hi i have a problem with line 3 1 its say type error the my _ map = map ( 5 , 5 , 1

Hi i have a problem with line 31 its say type error the my_map= map(5,5,10,10) i already have class block and item and map in another code why is it like this?
Import matplotlib.pyplot as plt
class Reproduction:
def
##\tt__(self, map_instance, temperature=25):
Inttlalize the reproduction with a map instance and temperature.
:param map_instance: Instance of the Map class.
:param temperature: Initial temperature (default 25
n"n
self.map = map_instance
self.temperature = temperature
def run(self): Vim Visual Studio
Run the reproduction and produce RGB and thermal perspectives.
rgb_view = self.map.get_rgb_map_view()
thermal_view = self.map.get_thermal_map_view(self.temperature)fig, axs = plt.subplots(1,2, figsize=(10,5))
axs[0].imshow(rgb_view)
axs[0].set_title("RGB View")
axs[1]. imshow(thermal_view, cmap='hot', interpolation='nearest')
axs[1].set_title(f"Thermal View at {self.temperature}}\mp@subsup{}{}{\circ}\textrm{C}"
plt.show()if name== "main":my_map = map(5,5,10,10)my_map.add_item_to_block((0,0), Item("Tree",(0,255,0),0.8,(5,5)))
my_map.add_ttentto_block((1,1), Iten("House",(255,0,0),0.5,(3,3)))
my_map.add_tten_to_block((2,2), Item("Road",(128,128,128),0.2,(2,2)))reproduction = Reproduction(my_map, temperature=30)
reproduction.run()
"
sinulation.py"42L,1574B
Hi i have a problem with line 3 1 its say type

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!