# MethodError: objects of type String are not callable

**URL:** <https://discourse.julialang.org/t/methoderror-objects-of-type-string-are-not-callable/96302>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [March 19, 2023, 10:32am UTC](https://discourse.julialang.org/t/methoderror-objects-of-type-string-are-not-callable/96302 "2023-03-19T10:32:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_pratap\_singh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amit_pratap_singh/32/47860_2.png) [@Amit\_pratap\_singh](https://discourse.julialang.org/u/Amit_pratap_singh)\
**Post date:** [March 19, 2023, 10:32am UTC](https://discourse.julialang.org/t/methoderror-objects-of-type-string-are-not-callable/96302/1 "2023-03-19T10:32:28Z")

</div>

#first plot the data  
plot(numpirates, globaltemperatures, legend=false)  
scatter!(numpirates, globaltemperatures, legend=false)

#this reverses x axis we can see how the temperature changes  
xflip!()

title!(“Global temperatures”)

I am having issues while executing the above code.

MethodError: objects of type String are not callable

Stacktrace:  
[1] top-level scope  
@ In[44]:8
