# Combining Multiple Contour Plots with Different X, Y, and Z Ranges

I am trying to calculate the differences in natural frequencies between two different dynamic models, and I would like to plot these error contours in terms of ues (mass ratio) and nel (frequency ratio). err1 corresponds to the error when nel > 1 and err2 corresponds to the error when nel < 1.

Naturally these error contours should be plotted on a single graph, but I cannot find a way to combine these on a single graph, especially since nel needs to be plotted on a log X-axis. I have tried Show[], but I cannot get it to plot the graph with the following requirements:

1. Logarithmic X-axis (ues)
2. Filled in Contours
3. Contour Plot Range (error) shall be {0 , 0.5}
4. X-Axis (ues) Range shall be {0 , 1}
5. Y-Axis (nes) Range shall be {0 , 3.5}

Here are two separate graphs that accomplish the requirements above but are not combined:

ClearAll["Global*"]

err1 = -1 + Sqrt/Sqrt[1 + ues + nel^2*(1 + ues) -
Sqrt[(1 + ues)*((-1 + nel^2)^2 + (1 + nel^2)^2*
ues)]]

err2 = 1 - Sqrt/Sqrt[1 + ues + nel^2*(1 + ues) +
Sqrt[(1 + ues)*((-1 + nel^2)^2 + (1 + nel^2)^2*
ues)]]

(* Plot Error 1 Contour *)
Show[ContourPlot[
Tooltip[err1, Row[{"ues = ", ues}]], {ues, 0, 1}, {nel, 1, 3.5},
PlotRange -> {0, 0.501},
Contours -> Join[{0.01}, Range[0.05, 0.50, 0.05]],
AxesLabel -> Automatic, ScalingFunctions -> {"Log", None}],
AxesLabel -> {None, None},
FrameLabel -> {{HoldForm[nel], None}, {HoldForm[ues], None}},
PlotLabel -> None, LabelStyle -> {GrayLevel}]

(* Plot Error 2 Contour *)
Show[ContourPlot[
Tooltip[err2, Row[{"ues = ", ues}]], {ues, 0, 1}, {nel, 0, 1},
PlotRange -> {0, 0.501},
Contours -> Join[{0.01}, Range[0.05, 0.50, 0.05]],
AxesLabel -> Automatic, ScalingFunctions -> {"Log", None}],
AxesLabel -> {None, None},
FrameLabel -> {{HoldForm[nel], None}, {HoldForm[ues], None}},
PlotLabel -> None, LabelStyle -> {GrayLevel}]


Note I use ScalingFunctions from Mathematica 11.

 ContourPlot[Tooltip[If[nel <= 1, err2, err1], Row[{"ues = ", ues}]], • Both If or Piecewise` work beautifully. Thanks for showing me a path foward. – felimz Oct 14 '18 at 23:00
{"ft_lang_label":"__label__en","ft_lang_prob":0.66295594,"math_prob":0.97882545,"size":1891,"snap":"2019-26-2019-30","text_gpt3_token_len":631,"char_repetition_ratio":0.11658718,"word_repetition_ratio":0.29773462,"special_character_ratio":0.37916446,"punctuation_ratio":0.19638243,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99306446,"pos_list":[0,1,2],"im_url_duplicate_count":[null,5,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-07-23T15:06:42Z\",\"WARC-Record-ID\":\"<urn:uuid:205861c4-38e5-43a9-b37f-5a9337050609>\",\"Content-Length\":\"129876\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:52d23fe2-b875-40d2-9cb5-67b60ed61f24>\",\"WARC-Concurrent-To\":\"<urn:uuid:8f08af52-fbc3-42de-a011-a35e04712474>\",\"WARC-IP-Address\":\"151.101.129.69\",\"WARC-Target-URI\":\"https://mathematica.stackexchange.com/questions/183845/combining-multiple-contour-plots-with-different-x-y-and-z-ranges\",\"WARC-Payload-Digest\":\"sha1:TFZWCTCYGNU46QRFLVELJAS5LEFJDF2U\",\"WARC-Block-Digest\":\"sha1:OA2G2B5GJVZH4LF72YXAIZZUYLQHGWFX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-30/CC-MAIN-2019-30_segments_1563195529406.97_warc_CC-MAIN-20190723130306-20190723152306-00398.warc.gz\"}"}